I use the Leaflet Draw plugin. My goal is to create markers and show a pop up in which I can get latitude and longitude coordinates. I manage to get these coordinate
map.on('draw:created', function (e) { var type = e.layerType, layer = e.layer; map.addLayer(layer); if (type === 'marker') { layer.bindPopup('LatLng: ' + layer.getLatLng()).openPopup(); } });