How to embedded on a web page so that on user click > data sent to a text field too #9199
-
Hello I’m hoping to use Leaflet.js on a not-for-profit website where the map is used by user to click on locations where there are land and coastal spaces that they would like to nominate for upgrading by the local government. What I’d like to be able to do is that when the person clicks on the map/drops a pin is to then have that location pass over into a text field on the same page. This is as the page will collect other free text data entries by the user (a web form) and I’d like the map text location (not long lat) from the map to pass across with that data. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, great to hear that you find Leaflet useful! However, this issue tracker is used for reporting bugs and discussing new features. For questions on using Leaflet, please use gis.stackexchange.com or stackoverflow. Before I close this, I wil give you some hints:
|
Beta Was this translation helpful? Give feedback.
Hi, great to hear that you find Leaflet useful!
However, this issue tracker is used for reporting bugs and discussing new features. For questions on using Leaflet, please use gis.stackexchange.com or stackoverflow.
Before I close this, I wil give you some hints:
click
listener on the leaflet map-objectmap.on('click', function(e){})
, where you get the latlng overe