mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-12-06 10:34:13 +00:00
adaptative attribution
This commit is contained in:
1 parent
4b5b6b8a20
commit
22a269a6dc
5 files changed
+264
-92
No files matched your search
@@ -10,7 +10,10 @@ 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';
|
||||
import {
|
||||
registerOpenSatelliteProtocol,
|
||||
trackOpenSatelliteAttribution,
|
||||
} from '$lib/components/map/open-satellite';
|
||||
|
||||
const { treeFileView, elevationProfile, bottomPanelSize, rightPanelSize, distanceUnits } = settings;
|
||||
|
||||
@@ -71,6 +74,7 @@ export class MapLibreGLMap {
|
||||
maxPitch: 90,
|
||||
});
|
||||
this.layerEventManager = new MapLayerEventManager(map);
|
||||
trackOpenSatelliteAttribution(map);
|
||||
map.addControl(
|
||||
new maplibregl.NavigationControl({
|
||||
visualizePitch: true,
|
||||
|
||||
Reference in new issue
Block a user