Beispiel #1
0
 void InfoWindowClicked(object sender, Xamarin.Forms.GoogleMaps.InfoWindowClickedEventArgs e)
 {
     foreach (var city in SharedCities.cities)
     {
         if (city.Latitude == e.Pin.Position.Latitude &&
             city.Longitude == e.Pin.Position.Longitude)
         {
             Navigation.PushAsync(new CityPage(city));
             return;
         }
     }
 }
Beispiel #2
0
 void InfoWindowClicked(System.Object sender, Xamarin.Forms.GoogleMaps.InfoWindowClickedEventArgs e)
 {
     ((CourtsMapPageViewModel)this.BindingContext).InfoWindowSelected(e.Pin);
 }
Beispiel #3
0
        internal void SendInfoWindowClicked(Pin pin)
        {
            var args = new InfoWindowClickedEventArgs(pin);

            InfoWindowClicked?.Invoke(this, args);
        }