private void locationsMap_MapClicked(object sender, Xamarin.Forms.Maps.MapClickedEventArgs e) { locationsMap.Pins.Add(new Xamarin.Forms.Maps.Pin() { Position = e.Position, Label = "Okay" }); DisplayAlert("Accept", "F**k you", "Thunder"); this.Title = e.Position.ToString(); }
private void MapControl_MapClicked(object sender, Xamarin.Forms.Maps.MapClickedEventArgs e) { MapControl.Pins.Clear(); MapControl.Pins.Add(new Xamarin.Forms.Maps.Pin() { Position = e.Position, Label = "Clicked", Type = Xamarin.Forms.Maps.PinType.SavedPin }); }
private void MainMap_MapClicked(object sender, Xamarin.Forms.Maps.MapClickedEventArgs e) { MapButton.IsVisible = false; if (MainMap.Pins.Count != 0) { MainMap.Pins.Clear(); } MainMap.Pins.Add(new Xamarin.Forms.Maps.Pin { Position = e.Position, Label = "HomeLocation", Address = "Add Address", Type = Xamarin.Forms.Maps.PinType.Place }); MapButton.IsVisible = true; }
private void OnMapClicked(object sender, Xamarin.Forms.Maps.MapClickedEventArgs e) { Navigation.PushAsync(new AddAdvertisementPage(e.Position)); }