Examples
GeoArrow MultiLineStrings (deck.gl-geoarrow)
Country boundary rings from a GeoArrow IPC file. Each country's border is encoded as a MultiLineString (a list of coordinate rings) and streamed directly to the GPU.
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/natural-earth_countries-bounds.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="1"
:get-color="[180, 180, 180, 200]"
/>
</VMap>
</template> Components 2
<VMap />@geoql/v-maplibre<VLayerDeckglGeoArrowPath />@geoql/v-maplibre/deck.gl
GeoArrow MultiLine
Country boundaries from a GeoArrow MultiLineString encoding — one row per country, each holding multiple border rings.
Rows
—
Format
MultiLineString
Width scale1×
Opacity71%