Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsoltMONOLITE authored Dec 4, 2023
1 parent bbab13f commit aef1a04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ function addPoints(data) {
} else {
marker = L.marker([data[row].lat, data[row].lon]);
}
marker.addTo(pointGroupLayer);

if (data[row].include === "y" || data[row].include === "2_Registered" || data[row].include === "1_Admin") {
pointGroupLayer.addLayer(marker);
}

// Pop-up marker with all data
marker.bindPopup(`
<h2>Project: ${data[row].name}</h2>
Expand Down

0 comments on commit aef1a04

Please sign in to comment.