Desidero recuperare le coordinate x/y ad ogni clic-evento su Google Maps.Come posso ottenere il numero xey su ogni evento click su Google Maps?
Qualcuno potrebbe aiutarmi per favore?
Grazie in anticipo.
Desidero recuperare le coordinate x/y ad ogni clic-evento su Google Maps.Come posso ottenere il numero xey su ogni evento click su Google Maps?
Qualcuno potrebbe aiutarmi per favore?
Grazie in anticipo.
google.maps.event.addListener(map, "click", function (e) {
document.form1.waypointLog.value = e.latLng.lat().toFixed(6)
+ ' |' + e.latLng.lng().toFixed(6);
});
Fonte:https://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/3f4329e3a20e7b0b
è anche possibile controllare: http://forums.gpsreview.net/viewtopic.php?t=3632
grazie per questa risposta – SamekaTV
Prego! –
Un blog dettagliata: http://sforsuresh.in/getting-latitude-longitude-google-maps-api/ –