Personally I'm using the following library to work with maps: link .
Here's the tutorial: link .
I would like when I clicked on the map not to raise a alert
, but rather that the data was for 2 inputs. To raise alert
the following command is used:
$config['onclick'] = 'alert(\'You just clicked at: \' + event.latLng.lat() + \', \' + event.latLng.lng());';
But I do not handle much of javascript and I have no idea how to pass the value to the 2 inputs, thank you who can help me.