Google Maps HTML5 click to get lat, long

The code below will show you how to get the Long and Lat when the user clicks the map – Allow user to place marker on a google map

google.maps.event.addListener(map, 'click', function( event ){
  alert( "Latitude: "+event.latLng.lat()+" "+", longitude: "+event.latLng.lng() ); 
});

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)