From 4258cf5a84fcde33194566a3de01f1471d1dd709 Mon Sep 17 00:00:00 2001 From: ZsoltMONOLITE <141682166+ZsoltMONOLITE@users.noreply.github.com> Date: Wed, 29 Nov 2023 23:22:38 +0000 Subject: [PATCH] Update main.js --- main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index e2165bb3..83095026 100644 --- a/main.js +++ b/main.js @@ -116,10 +116,9 @@ function addGeoms(data) { // This zooms the map to the clicked geometry // Uncomment to enable // map.fitBounds(e.target.getBounds()); - //map.fitBounds(e.target.getBounds()); // if this isn't added, then map.click is also fired! - L.DomEvent.stopPropagation(e, 'click'); + L.DomEvent.stopPropagation(e); document.getElementById("sidebar-title").innerHTML = e.target.feature.properties.name; @@ -168,7 +167,7 @@ function addPoints(data) { marker.addTo(pointGroupLayer); // UNCOMMENT THIS LINE TO USE POPUPS - marker.bindPopup('

' + data[row].name + '

There's a ' + data[row].description + ' here'); + //marker.bindPopup('

' + data[row].name + '

There's a ' + data[row].description + ' here'); // COMMENT THE NEXT GROUP OF LINES TO DISABLE SIDEBAR FOR THE MARKERS marker.feature = {