vue-maplibre-gl
Version:
Vue 3 plugin for maplibre-gl
13 lines (10 loc) • 451 B
text/typescript
import type { ValidLanguages } from '@/types';
import type { MapOptions as MaplibreMapOptions } from 'maplibre-gl';
import { reactive } from 'vue';
export type MapOptions = Omit<MaplibreMapOptions, 'container' | 'style'> & { style: object | string, language?: ValidLanguages };
export const defaults = reactive<MapOptions>({
style : 'https://demotiles.maplibre.org/style.json',
center : [ 0, 0 ],
zoom : 1,
trackResize: false
});