diff options
author | jh5.cho <jh5.cho@samsung.com> | 2017-03-17 20:58:29 +0900 |
---|---|---|
committer | jh5.cho <jh5.cho@samsung.com> | 2017-03-20 18:50:08 +0900 |
commit | 97d39ca8acf3cc659f57f096054f2f8865c9a9fc (patch) | |
tree | 8adf363094d97789f17a76353b707be5fe47c2a0 | |
parent | 665e99968a805011b9861e0a0036e2da81bab1c1 (diff) | |
download | xamarin-forms-97d39ca8acf3cc659f57f096054f2f8865c9a9fc.tar.gz xamarin-forms-97d39ca8acf3cc659f57f096054f2f8865c9a9fc.tar.bz2 xamarin-forms-97d39ca8acf3cc659f57f096054f2f8865c9a9fc.zip |
Add logic to move map when first launch
- Add logic to move to specific point on the map when the MapSpan
is given on the Map Constructor.
(e.g. var map = new Map(new MapSpan(new Position(37.466047, 127.024097), 10, 10)))
Change-Id: I85a8502a8c101ec984730b72e66a783fee19e2e4
-rwxr-xr-x | Xamarin.Forms.Maps.Tizen/MapRenderer.cs | 5 | ||||
-rw-r--r-- | packaging/xamarin-forms-tizen.spec | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.Forms.Maps.Tizen/MapRenderer.cs b/Xamarin.Forms.Maps.Tizen/MapRenderer.cs index 752b021f..c04f6cc8 100755 --- a/Xamarin.Forms.Maps.Tizen/MapRenderer.cs +++ b/Xamarin.Forms.Maps.Tizen/MapRenderer.cs @@ -45,6 +45,11 @@ namespace Xamarin.Forms.Maps.Tizen mapControl.RenderPost += OnVisibleRegionChanged; SetNativeControl(mapControl); + + if (Element.LastMoveToRegion != null) + { + OnMoveToRegion(null, Element.LastMoveToRegion); + } } if (e.OldElement != null) diff --git a/packaging/xamarin-forms-tizen.spec b/packaging/xamarin-forms-tizen.spec index 68cbeb9c..fea2a20e 100644 --- a/packaging/xamarin-forms-tizen.spec +++ b/packaging/xamarin-forms-tizen.spec @@ -1,7 +1,7 @@ %define XF_VERSION 2.3.4 # Increase this XF_TIZEN_VERSION when any public APIs of Xamarin.Forms.Platform.Tizen are changed. -%define XF_TIZEN_VERSION r192-004 +%define XF_TIZEN_VERSION r192-005 Name: xamarin-forms-tizen Summary: Xamarin.Forms for Tizen platform |