Exemplo n.º 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();
 }
Exemplo n.º 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
     });
 }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 private void OnMapClicked(object sender, Xamarin.Forms.Maps.MapClickedEventArgs e)
 {
     Navigation.PushAsync(new AddAdvertisementPage(e.Position));
 }