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('