Google Maps API Geolocator

Drag and release the marker to view the coordinates.


	
var myMarker = new google.maps.Marker({ draggable: true, position: myLatlng, }); google.maps.event.addListener(myMarker, 'dragend', function(evt){ document.getElementById("latlong").value = evt.latLng.lat().toFixed(7) +', '+ evt.latLng.lng().toFixed(7); });
Created by