feat(web): bundle and 'sveltify' leaflet (#1998)

* feat(web): bundle and 'sveltify' leaflet

* lazy load leaflet components

* add correct icon sizes
This commit is contained in:
Michel Heusschen
2023-03-19 20:06:45 +01:00
committed by GitHub
parent 7ce64ecf05
commit b29c43d86a
6 changed files with 143 additions and 53 deletions

View File

@@ -0,0 +1,8 @@
import { getContext, setContext } from 'svelte';
export function createContext<T>(key: string | symbol = Symbol()) {
return {
get: () => getContext<T>(key),
set: (context: T) => setContext<T>(key, context)
};
}