Examples
River Flood History (GRRR)
Daily river flow from 1981 to 2025 for 31,000 large-river basins, from the November 2026 Google Runoff Reanalysis & Reforecast (CC BY 4.0). Click a basin to see its yearly peaks against the 2, 20 and 100-year flood levels.
Installation
$ npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-deckgl-coreUsage
<script setup lang="ts">
import { VMap, VControlScale } from '@geoql/v-maplibre';
import { VLayerDeckglScatterplot } from '@geoql/v-maplibre/deck.gl';
// 31k basins from D1 (a cron job loads them from the GRRR bucket).
const basins = await $fetch('/api/grrr/basins');
// The server reads one Zarr chunk from the public GRRR bucket
// and returns that basin's daily flow, 1981–2025.
async function onClick({ object }) {
if (object) series.value = await $fetch(`/api/grrr/${object.row}`);
}
</script>
<template>
<VMap :options="mapOptions" class="h-125 w-full">
<VControlScale position="bottom-left" />
<VLayerDeckglScatterplot
id="grrr-basins"
:data="basins"
:get-position="(d) => d.position"
:get-fill-color="(d) => flowColor(d.rp2)"
radius-units="pixels"
:pickable="true"
@click="onClick"
/>
</VMap>
</template> Components 3
<VMap />@geoql/v-maplibre<VControlScale />@geoql/v-maplibre<VLayerDeckglScatterplot />@geoql/v-maplibre/deck.gl