I'm trying to find a plug-in on leaflet in which the user will enter the address and the html (aka the plug-in) will geocode the location and will return a latitude and longitude. So I have try the Leaflet-Control Geocoder,but I am not able to the lat,long.
Does anyone have an example?
Best Answer
As per the Leaflet Control Geocoder plugin API documentation, you should:
"markgeocode"
event of theL.Control.geocoder
object.event.geocode.center
LatLng object that is passed to your event listener.Demo: http://playground-leaflet.rhcloud.com/robi/1/edit?html,output