I need to place a new marker where ever I click. According to the Google map API documentation, I did following.
Template.googleMap.events({
'click .map-canvas': function(event){
var marker = new google.maps.Marker({
position: event.latLng(),
map: map
});
}
});
But following error occurs.
“Uncaught TypeError: event.latLng is not a function”