Skip to content
Browse files

Update documentation for maps.js

  • Loading branch information...
1 parent a801505 commit fe66f1890fc9f62bffe661bf2fa756a05d5d0b81 @ajoslin ajoslin committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/directives/map/map.js
2 modules/directives/map/map.js
@@ -5,6 +5,8 @@
//then we just use ui-event to catch events from an element
function bindMapEvents(scope, eventsStr, googleObject, element) {
angular.forEach(eventsStr.split(' '), function (eventName) {
+ //Prefix all googlemap events with 'map-', so eg 'click'
+ //for the googlemap doesn't interfere with a normal 'click' event
var $event = { type: 'map-' + eventName };
google.maps.event.addListener(googleObject, eventName, function (evt) {
element.trigger(angular.extend({}, $event, evt));

0 comments on commit fe66f18

Please sign in to comment.
Something went wrong with that request. Please try again.