Fix initially empty overview map

This commit is contained in:
Maximilian Krög
2021-02-15 00:04:29 +01:00
parent 0f64bb7459
commit 73d288c191

View File

@@ -322,6 +322,11 @@ class OverviewMap extends Control {
}
const newView = this.getMap().getView();
this.bindView_(newView);
} else if (
!this.ovmap_.isRendered() &&
(event.key === MapProperty.TARGET || event.key === MapProperty.SIZE)
) {
this.ovmap_.updateSize();
}
}