Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amirkhan81/dd6a2580860dffc9f29c3ad75a68292e to your computer and use it in GitHub Desktop.
Save amirkhan81/dd6a2580860dffc9f29c3ad75a68292e to your computer and use it in GitHub Desktop.
dataLayer.on('click', function(e) {
allMarkers.eachLayer(function(marker) {
if(dataLayer.getBounds().contains(marker.getLatLng())){
console.log(marker.toGeoJSON().properties.Point_Name)
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment