maplibre system

This commit is contained in:
Alex Tran
2023-11-28 23:14:48 -06:00
parent 7b73941531
commit f011c77cdd

View File

@@ -33,10 +33,6 @@
let map: maplibregl.Map;
let marker: maplibregl.Marker | null = null;
$: if (map) {
map.on('click', handleMapClick);
}
$: style = (async () => {
const { data } = await api.systemConfigApi.getMapStyle({
theme: $mapSettings.allowDarkMode ? $colorTheme : 'light',
@@ -120,6 +116,7 @@
diffStyleUpdates={true}
let:map
on:load={(event) => event.detail.setMaxZoom(14)}
on:load={(event) => event.detail.on('click', handleMapClick)}
bind:map
>
<NavigationControl position="top-left" showCompass={!simplified} />