Get click event Google map
How do I get a click event to fire on a Google map? The click event for the control fires no problem, but not the map itself, so its event can be used.
Perused this page and nothing helped:
https://getsatisfaction.com/apperyio/...
This should be an easy task, but doesn't work (no error messages):
premap = new google.maps.Map(document.getElementById('pageName_map'));
google.maps.event.addListener(map, 'click', function(event) {
console.log('click');
ClearMarkers();
AddMarker(map, event.latLng);
});/pre