l.marker(e.latlng).addto(map) code example Example: leaflet change marker location marker.setLatLng(e.latlng);