summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.Android/MapRenderer.cs
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2017-01-03 11:35:54 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-01-03 11:35:54 (GMT)
commitf003cfd3886adb85cd6dd10e8083bc82abb68234 (patch)
tree2ed2781ab7465d27f1b51e8bd3e004fe65dfbc0d /Xamarin.Forms.Maps.Android/MapRenderer.cs
parent17cdd40d1d7159e5ea40d85dc596cb00e6db69a5 (diff)
downloadxamarin-forms-f003cfd3886adb85cd6dd10e8083bc82abb68234.zip
xamarin-forms-f003cfd3886adb85cd6dd10e8083bc82abb68234.tar.gz
xamarin-forms-f003cfd3886adb85cd6dd10e8083bc82abb68234.tar.bz2
[iOS/Android] Move Map camera to correct region on layout change (#548)
* Move to region on layout change * remove visibility check
Diffstat (limited to 'Xamarin.Forms.Maps.Android/MapRenderer.cs')
-rw-r--r--Xamarin.Forms.Maps.Android/MapRenderer.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xamarin.Forms.Maps.Android/MapRenderer.cs b/Xamarin.Forms.Maps.Android/MapRenderer.cs
index f83b6fa..3316faa 100644
--- a/Xamarin.Forms.Maps.Android/MapRenderer.cs
+++ b/Xamarin.Forms.Maps.Android/MapRenderer.cs
@@ -186,6 +186,7 @@ namespace Xamarin.Forms.Maps.Android
else if (changed)
{
UpdateVisibleRegion(NativeMap.CameraPosition.Target);
+ MoveToRegion(Element.LastMoveToRegion, false);
}
}