Skip to content

Instantly share code, notes, and snippets.

@rwisner
Created October 6, 2020 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwisner/b5b98d6c6914d8c5d22290389789f891 to your computer and use it in GitHub Desktop.
Save rwisner/b5b98d6c6914d8c5d22290389789f891 to your computer and use it in GitHub Desktop.
Add a pin to mymap at lat, lon with a popup
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