vendor/assets/javascripts/map.js in flashgrid-1.2.0 vs vendor/assets/javascripts/map.js in flashgrid-1.3.0
- old
+ new
@@ -758,9 +758,15 @@
}
});
})(el, stop_overlay_events[ev]);
}
+ if (options.click) {
+ google.maps.event.addDomListener(overlay.el, 'click', function() {
+ options.click.apply(overlay, [overlay]);
+ });
+ }
+
google.maps.event.trigger(this, 'ready');
};
overlay.draw = function() {
var projection = this.getProjection(),
\ No newline at end of file