Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onMapClick(e) {
- popup
- .setLatLng(e.latlng)
- .setContent("You clicked the map at " + e.latlng.toString() + "\n see below for more options...")
- .openOn(mymap);
- getCords = e.latlng;
- document.getElementById('latLonShow').innerHTML = "your latitude and longditude is "+getCords;
- document.getElementById('clickEvent').innerHTML = "Would you like to Add this to your saved pins?"
- document.getElementById('testBox').innerText= getCords;
- }
- mymap.on('click', onMapClick);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement