Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsoltMONOLITE authored Nov 29, 2023
1 parent 5100bb1 commit f0365c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ function addGeoms(data) {
// This zooms the map to the clicked geometry
// Uncomment to enable
// map.fitBounds(e.target.getBounds());
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, 'click');

document.getElementById("sidebar-title").innerHTML =
e.target.feature.properties.name;
Expand Down

0 comments on commit f0365c0

Please sign in to comment.