Created
October 6, 2020 18:20
-
-
Save rwisner/b5b98d6c6914d8c5d22290389789f891 to your computer and use it in GitHub Desktop.
Add a pin to mymap at lat, lon with a popup
This file contains 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
function addPin(mymap, lat, lon, name) { | |
// add a pin to mymap at lat, lon with a popup | |
L.marker([lat, lon]).addTo(mymap).bindPopup(name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment