diff --git a/src/ol/map.js b/src/ol/map.js index fe147e1541..42dd95b574 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -290,6 +290,16 @@ ol.Map.prototype.canRotate = function() { }; +/** + * + * @inheritDoc + */ +ol.Map.prototype.disposeInternal = function() { + goog.base(this, 'disposeInternal'); + goog.dom.removeNode(this.viewport_); +}; + + /** * @param {ol.Extent} extent Extent. */