From 8548fdf8a6aaad4ceca97b29899a23aebfb29af2 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sun, 18 Apr 2021 13:30:15 +0200 Subject: [PATCH] Show locate marker above everything else --- frontend/src/map/leaflet-map/leaflet-map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/map/leaflet-map/leaflet-map.ts b/frontend/src/map/leaflet-map/leaflet-map.ts index db5978d3..56169b53 100644 --- a/frontend/src/map/leaflet-map/leaflet-map.ts +++ b/frontend/src/map/leaflet-map/leaflet-map.ts @@ -103,7 +103,7 @@ export default class LeafletMap extends Vue { const graphicScale = L.control.graphicScale({ fill: "hollow", position: "bottomcenter" }).addTo(map); const hashHandler = new HashHandler(map, this.client).on("fmQueryChange", this.handleNewHashQuery).enable(); const linesLayer = new LinesLayer(this.client).addTo(map); - const locateControl = L.control.locate({ flyTo: true, icon: "a", iconLoading: "a" }).addTo(map); + const locateControl = L.control.locate({ flyTo: true, icon: "a", iconLoading: "a", markerStyle: { pane: "fm-raised-marker", zIndexOffset: 10000 } }).addTo(map); const markersLayer = new MarkersLayer(this.client).addTo(map); const mousePosition = L.control.mousePosition({ emptyString: "0, 0", separator: ", ", position: "bottomright" }).addTo(map); const searchResultsLayer = new SearchResultsLayer(undefined, { pathOptions: { weight: 7 } }).addTo(map);