Ensure that OverviewMap respects the initial rotation of attached Maps

This commit is contained in:
Brian Helba
2019-11-18 05:29:19 -05:00
parent 3f8164250c
commit c5ad886d7c
2 changed files with 7 additions and 3 deletions

View File

@@ -304,6 +304,8 @@ class OverviewMap extends Control {
*/
bindView_(view) {
view.addEventListener(getChangeEventType(ViewProperty.ROTATION), this.boundHandleRotationChanged_);
// Sync once with the new view
this.handleRotationChanged_();
}
/**