diff --git a/public/templates/viewer.tmpl b/public/templates/viewer.tmpl index 9cc7d17..0c2260b 100644 --- a/public/templates/viewer.tmpl +++ b/public/templates/viewer.tmpl @@ -55,19 +55,10 @@ showZoom: true, showCompass: true })); - const inspectUrlTag = '&inspect'; map.addControl(new MaplibreInspect({ showMapPopupOnHover: false, showInspectMapPopupOnHover: false, - selectThreshold: 5, - showInspectMap: window.location.hash.includes(inspectUrlTag), - toggleCallback: function(showInspectMap) { - if (showInspectMap) { - window.location.hash += inspectUrlTag; - } else { - window.location.hash = window.location.hash.replace(inspectUrlTag, ''); - } - } + selectThreshold: 5 })); } else { var map = L.map('map', { zoomControl: false });