Add logic to move map when first launch
authorjh5.cho <jh5.cho@samsung.com>
Fri, 17 Mar 2017 11:58:29 +0000 (20:58 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 10 Jul 2017 02:11:20 +0000 (11:11 +0900)
    - 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

Xamarin.Forms.Maps.Tizen/MapRenderer.cs
packaging/xamarin-forms-tizen.spec

index 752b021..c04f6cc 100755 (executable)
@@ -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)
index 68cbeb9..fea2a20 100644 (file)
@@ -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