Examples
GeoArrow LineStrings (deck.gl-geoarrow)
Three famous travel routes rendered from a GeoArrow IPC file with VLayerDeckglGeoArrowPath. LineStrings are encoded as flat coordinate arrays.
Usage
<script setup lang="ts">
import { VMap } from '@geoql/v-maplibre';
import { VLayerDeckglGeoArrowPath } from '@geoql/v-maplibre/deck.gl';
import { tableFromIPC } from 'apache-arrow';
const table = shallowRef(null);
onMounted(async () => {
const url = '/geoarrow/famous-routes.arrows';
const buffer = await (await fetch(url)).arrayBuffer();
table.value = tableFromIPC(new Uint8Array(buffer));
});
</script>
<template>
<VMap :options="mapOptions" class="size-full">
<VLayerDeckglGeoArrowPath
v-if="table"
:data="table"
:width-scale="10"
:get-color="[72, 209, 204, 220]"
/>
</VMap>
</template> Components 2
<VMap />@geoql/v-maplibre<VLayerDeckglGeoArrowPath />@geoql/v-maplibre/deck.gl
GeoArrow LineStrings
Three famous travel routes from a GeoArrow LineString encoding — coast-to-coast US, London → Tokyo, and Nile Delta.
Routes
—
Format
LineString
Width scale10×
Opacity78%