示例#1
0
 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();
 }
示例#2
0
 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
     });
 }
示例#3
0
        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;
        }
示例#4
0
 private void OnMapClicked(object sender, Xamarin.Forms.Maps.MapClickedEventArgs e)
 {
     Navigation.PushAsync(new AddAdvertisementPage(e.Position));
 }