From 1e105aae58f1303b178316546ac3cd6e10f37757 Mon Sep 17 00:00:00 2001 From: "jh5.cho" Date: Fri, 17 Mar 2017 20:58:29 +0900 Subject: 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 --- Xamarin.Forms.Maps.Tizen/MapRenderer.cs | 5 +++++ packaging/xamarin-forms-tizen.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3