mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-01 08:12:32 +00:00
use store to access map object
This commit is contained in:
5
website/src/lib/stores.ts
Normal file
5
website/src/lib/stores.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
import mapboxgl from 'mapbox-gl';
|
||||
|
||||
export const map = writable<mapboxgl.Map | null>(null);
|
Reference in New Issue
Block a user