From 55e6dbba389bdcf6d38408faa2f78a38b9bbde93 Mon Sep 17 00:00:00 2001 From: acalcutt Date: Wed, 8 Feb 2023 00:09:43 -0500 Subject: [PATCH] Revert "add inspect toggle callback" This reverts commit 3acbbb602b6eed29dfa5c592b6c848b1d19d03bb. --- public/templates/viewer.tmpl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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 });