This commit is contained in:
vcoppe committed 2026-11-29 12:52:41 +01:00
1 parent 1bd8ac46fe
commit 2cf9a9f982
6 files changed
+545 -12

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ import { settings } from '$lib/state/settings';
import { tick } from 'svelte';
import { ANCHOR_LAYER_KEY, StyleManager } from '$lib/components/map/style';
import { MapLayerEventManager } from '$lib/components/map/map-layer-event-manager';
import { registerOpenSatelliteProtocol } from '$lib/components/map/open-satellite';
const { treeFileView, elevationProfile, bottomPanelSize, rightPanelSize, distanceUnits } = settings;
@@ -41,6 +42,7 @@ export class MapLibreGLMap {
geolocate: boolean
) {
maplibregl.setWorkerUrl(workerUrl);
registerOpenSatelliteProtocol(maptilerKey);
this._maptilerKey = maptilerKey;
this._styleManager = new StyleManager(this._mapStore, this._maptilerKey);
// MapLibre gives Safari more workers, but only recognizes it by its user agent: not