I have developed a unique Google map with customized tiles, and now I am looking for a way to determine the latitude and longitude coordinates of specific points on the map in order to add markers. My project is based on Google Maps API v3.
Currently, I am following the "Event Context V3" approach to obtain the lat/long of the center position by using the following script:
google.maps.event.addListener(map, 'dragend', function() {
var center = map.getCenter();
alert(center.toString());
});
However, I would like to know if there is a method to achieve this by simply clicking on a certain area of the map, rather than having to drag the map around to change its center.