public DestinationPage() { InitializeComponent(); geoCoder = new Geocoder(); Title = "Destination"; map = new ExtMap( MapSpan.FromCenterAndRadius( new Position(37, -122), Distance.FromMiles(0.3))) { IsShowingUser = true, HeightRequest = 100, WidthRequest = 960, VerticalOptions = LayoutOptions.FillAndExpand }; map.IsShowingUser = true; mapLayout.Children.Add(map); var nextBtnClick = new TapGestureRecognizer(); nextBtnClick.Tapped += NextBtnClick_Tapped; btnNext.GestureRecognizers.Add(nextBtnClick); txtLocation.Completed += TxtLocation_Completed; map.Tapped += Map_Tapped; //Pick up location pin }
public Setpin() { InitializeComponent(); Title = "Set Pins"; map = new ExtMap( MapSpan.FromCenterAndRadius( new Position(37, -122), Distance.FromMiles(0.3))) { IsShowingUser = true, HeightRequest = 100, WidthRequest = 960, VerticalOptions = LayoutOptions.FillAndExpand }; map.IsShowingUser = true; mapLayout.Children.Add(map); var nextBtnClick = new TapGestureRecognizer(); nextBtnClick.Tapped += NextBtnClick_Tapped; btnNext.GestureRecognizers.Add(nextBtnClick); map.Tapped += Map_Tapped; }