use store to access map object

This commit is contained in:
vcoppe
2024-04-17 11:44:37 +02:00
parent bd2d3eed66
commit ab0b425243
7 changed files with 48 additions and 55 deletions

View File

@@ -0,0 +1,5 @@
import { writable } from 'svelte/store';
import mapboxgl from 'mapbox-gl';
export const map = writable<mapboxgl.Map | null>(null);