camerican / Help-Desk

Help Desk for NYCDA Projects
1 stars 1 forks source link

Google Maps Geolocation from clicks #15

Closed ghost closed 7 years ago

ghost commented 7 years ago

please

camerican commented 7 years ago

We're able to access the latitude and logitude from a click on the map via the Google Maps API:

google.maps.event.addListener(map, "click", function (e) {
   console.log( 'coords:', e.latLng );
}

Reference: [StackOverflow]