I will explain. I managed to have a draggable pin on a map. I want to retrieve the coordinates of this point and put them into two fields: Latitude and Longitude. These coor
var zoomLevel = map.getZoom(); var pos = (event.latLng).toString(); $('#position').val(zoomLevel+','+pos); //set value to some input
Example Run JsFiddle