Examples
GeoArrow Multipoint (deck.gl-geoarrow)
Individual city locations from a GeoArrow IPC file. Same dataset as the Points example, rendered as small individual dots instead of clustered halos.
Usage
<script setup lang="ts">
import { VMap } from '@geoql/v-maplibre';
import { VLayerDeckglGeoArrowScatterplot } from '@geoql/v-maplibre/deck.gl';
import { tableFromIPC } from 'apache-arrow';
const table = shallowRef(null);
onMounted(async () => {
const url = '/geoarrow/natural-earth_cities-clusters.arrows';
const buffer = await (await fetch(url)).arrayBuffer();
table.value = tableFromIPC(new Uint8Array(buffer));
});
</script>
<template>
<VMap :options="mapOptions" class="size-full">
<VLayerDeckglGeoArrowScatterplot
v-if="table"
:data="table"
:get-fill-color="[180, 220, 255, 255]"
:get-radius="8"
radius-units="pixels"
/>
</VMap>
</template> Components 2
<VMap />@geoql/v-maplibre<VLayerDeckglGeoArrowScatterplot />@geoql/v-maplibre/deck.gl
GeoArrow Multipoint
Individual points from a GeoArrow MultiPoint encoding — each city is a discrete dot rather than a cluster halo.
Cities
—
Format
MultiPoint
Dot size8px
Opacity100%