mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-12-06 10:34:13 +00:00
poc
This commit is contained in:
1 parent
1bd8ac46fe
commit
2cf9a9f982
6 files changed
+545
-12
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user