diff --git a/web/src/App.svelte b/web/src/App.svelte index 65e4005..220f852 100644 --- a/web/src/App.svelte +++ b/web/src/App.svelte @@ -13,14 +13,14 @@ import { mapContents, sidebarContents } from "./stores"; import ViewShortcutsMode from "./ViewShortcutsMode.svelte"; - let offlineMode = true; - let mapStyle = offlineMode - ? { + let showBasemap = false; + $: mapStyle = showBasemap + ? "https://api.maptiler.com/maps/dataviz/style.json?key=MZEJTanw3WpxRvt7qDfo" + : { version: 8, sources: {}, layers: [], - } - : "https://api.maptiler.com/maps/dataviz/style.json?key=MZEJTanw3WpxRvt7qDfo"; + }; type Mode = | { @@ -85,6 +85,12 @@ {/if}
+
+ +
+
@@ -101,7 +107,7 @@ {map} {app} boundary={mode.boundary} - {offlineMode} + {showBasemap} bind:mode /> {:else if mode.mode == "view-shortcuts"} diff --git a/web/src/NeighbourhoodMode.svelte b/web/src/NeighbourhoodMode.svelte index 97feb79..9c40bee 100644 --- a/web/src/NeighbourhoodMode.svelte +++ b/web/src/NeighbourhoodMode.svelte @@ -25,7 +25,7 @@ export let map: Map; export let app: LTN; export let boundary: Feature; - export let offlineMode: boolean; + export let showBasemap: boolean; let addingFilter = false; let undoLength = 0; @@ -166,7 +166,7 @@