Remove map renderer element when disposing

This commit is contained in:
Andreas Hocevar
2019-12-08 17:52:28 +01:00
parent 5f6ea987a5
commit cefc57622b

View File

@@ -74,6 +74,7 @@ class CompositeMapRenderer extends MapRenderer {
disposeInternal() {
unlistenByKey(this.labelCacheKey_);
this.element_.parentNode.removeChild(this.element_);
super.disposeInternal();
}