From b0a2c546df572e28ae7bd8c2ec9de7adce8e44d4 Mon Sep 17 00:00:00 2001 From: acalcutt Date: Sat, 21 Jan 2023 16:29:01 -0500 Subject: [PATCH] use same hover options on both maps Makes the popup only show on click. if you right click the popup goes away. (this was the behavior on the viewer pages before) --- public/templates/data.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/templates/data.tmpl b/public/templates/data.tmpl index 00be127..b128132 100644 --- a/public/templates/data.tmpl +++ b/public/templates/data.tmpl @@ -65,7 +65,10 @@ map.addControl(new maplibregl.NavigationControl()); var inspect = new MaplibreInspect({ showInspectMap: true, - showInspectButton: false + showInspectButton: false, + showMapPopupOnHover: false, + showInspectMapPopupOnHover: false, + selectThreshold: 5 }); map.addControl(inspect); map.on('styledata', function() {