diff --git a/src/ol/overlay.js b/src/ol/overlay.js index 49f5468baf..c7cfc15e9a 100644 --- a/src/ol/overlay.js +++ b/src/ol/overlay.js @@ -78,6 +78,12 @@ ol.Overlay = function(options) { visible: true }; + /** + * @private + * @type {goog.events.Key} + */ + this.mapPostrenderListenerKey_ = null; + goog.events.listen( this, ol.Object.getChangeEventType(ol.OverlayProperty.ELEMENT), this.handleElementChanged, false, this);