I am using http://angular-ui.imtqy.com/angular-google-maps and I cannot catch the event of a simple click on the map.
I tried like this:
_scope.map = {
center: { latitude: position.coords.latitude, longitude: position.coords.longitude },
zoom: 16,
events: {
click: function(mapModel, eventName, originalEventArgs) {
console.log("user defined event: " + eventName, mapModel, originalEventArgs);
var e = originalEventArgs[0];
_scope.$apply();
}
}
};
<ui-gmap-google-map center="map.center" zoom="map.zoom"></ui-gmap-google-map>
I donβt work like that, and I donβt know what to do. I would like to get the coordinates of the clicked location. Thnx
source
share