diff --git a/Xamarin.Forms.Maps.Android/MapRenderer.cs b/Xamarin.Forms.Maps.Android/MapRenderer.cs index f83b6fad84d..3316faa5436 100644 --- a/Xamarin.Forms.Maps.Android/MapRenderer.cs +++ b/Xamarin.Forms.Maps.Android/MapRenderer.cs @@ -186,6 +186,7 @@ protected override void OnLayout(bool changed, int l, int t, int r, int b) else if (changed) { UpdateVisibleRegion(NativeMap.CameraPosition.Target); + MoveToRegion(Element.LastMoveToRegion, false); } } diff --git a/Xamarin.Forms.Maps.iOS/MapRenderer.cs b/Xamarin.Forms.Maps.iOS/MapRenderer.cs index 3f4e7eb6654..af1f0808317 100644 --- a/Xamarin.Forms.Maps.iOS/MapRenderer.cs +++ b/Xamarin.Forms.Maps.iOS/MapRenderer.cs @@ -190,7 +190,7 @@ protected override void OnElementPropertyChanged(object sender, PropertyChangedE UpdateHasScrollEnabled(); else if (e.PropertyName == Map.HasZoomEnabledProperty.PropertyName) UpdateHasZoomEnabled(); - else if (e.PropertyName == VisualElement.IsVisibleProperty.PropertyName && ((Map)Element).LastMoveToRegion != null) + else if (e.PropertyName == VisualElement.HeightProperty.PropertyName && ((Map)Element).LastMoveToRegion != null) _shouldUpdateRegion = true; }