I\'m surprisingly struggling to find a very simple example of how to add a marker(s) to a Google Map when a user left clicks on the map.
I have looked around for the
Currently the method to add the listener to the map would be
map.addListener('click', function(e) { placeMarker(e.latLng, map); });
And not
google.maps.event.addListener(map, 'click', function(e) { placeMarker(e.latLng, map); });
Reference