ol.Popup no longer relies on map.getEvents
This commit is contained in:
@@ -208,7 +208,8 @@ ol.Popup.prototype.doOpen = function(opt_arg) {
|
||||
goog.dom.appendChild(this.container_, closeButton);
|
||||
goog.dom.classes.add(closeButton, ol.Popup.CLASS_NAME+'-close');
|
||||
}
|
||||
this.map_.getEvents().register('click', this.clickHandler, this);
|
||||
goog.events.listen(this.map_.getViewport(), 'click', this.clickHandler,
|
||||
undefined, this);
|
||||
goog.dom.appendChild(this.map_.getMapOverlay(), this.container_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user