public MapStartingPoint(Position pos) { InitializeComponent(); this.Title = "Starting Point"; infoLabel.Text = ""; pinFlag = true; myMap = new ExtMap { VerticalOptions = LayoutOptions.FillAndExpand, IsShowingUser = true }; this.IsBusy = true; myMap.MoveToRegion(new MapSpan(pos, 0.01, 0.01)); var pin = new Pin { Type = PinType.Place, Position = pos, Label = "Start", Address = "", }; myMap.Pins.Add(pin); stackMap.Children.Add(myMap); IsBusy = false; }
public MapStartingPoint() { InitializeComponent(); properties = Application.Current.Properties; pinFlag = false; myMap = new ExtMap { VerticalOptions = LayoutOptions.FillAndExpand, IsShowingUser = true }; myMap.Tapped += MyMap_Tapped; this.IsBusy = true; this.Locator(); if (properties.ContainsKey("route")) { newRoute = (Routes)Application.Current.Properties["route"]; } else { newRoute = new Routes(); } }