Created
May 5, 2016 18:45
-
-
Save amirkhan81/dd6a2580860dffc9f29c3ad75a68292e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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