What I would like to do is create app where when anyone clicks on the map object and two fields get filled with latitude and longitude at every click. Is there sample code o
var map = [google map]; google.maps.event.addListener(map, 'click', function (mouseEvent) { alert(mouseEvent.latLng.toUrlValue()); });