Examples
Bitmap Layer (deck.gl)
Overlay georeferenced images on the map with precise positioning.
Installation
$ npx shadcn-vue@latest add https://mapcn-vue.geoql.in/r/map-deckgl-coreUsage
<script setup lang="ts">
import { VMap, VControlNavigation } from '@geoql/v-maplibre';
import { VLayerDeckglBitmap } from '@geoql/v-maplibre/deck.gl';
const mapOptions = {
style: 'https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json',
center: [-122.4, 37.75],
zoom: 11,
};
// Image URL and geographic bounds [west, south, east, north]
const IMAGE_URL = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/sf-districts.png';
const BOUNDS = [-122.519, 37.7045, -122.355, 37.829];
</script>
<template>
<VMap :options="mapOptions" class="h-125 w-full">
<VControlNavigation position="top-right" />
<VLayerDeckglBitmap
id="bitmap-layer"
:image="IMAGE_URL"
:bounds="BOUNDS"
:opacity="0.8"
:pickable="true"
/>
</VMap>
</template> Components 3
<VMap />@geoql/v-maplibre<VControlNavigation />@geoql/v-maplibre<VLayerDeckglBitmap />@geoql/v-maplibre/deck.gl