Exemplo n.º 1
0
        private void OnInfoWindowClick(object sender, Android.Gms.Maps.GoogleMap.InfoWindowClickEventArgs e)
        {
            // invoke command in customMap
            var pin = _customMap.CustomPins.FirstOrDefault(x => e.Marker.Equals((Marker)x.PlatformMarker));

            if (pin != null)
            {
                _customMap?.InfoWindowClicked?.Execute(pin);
            }
        }
Exemplo n.º 2
0
        private void OnInfoWindowClick(object sender, Android.Gms.Maps.GoogleMap.InfoWindowClickEventArgs e)
        {
            // lookup pin
            var targetPin = LookupPin(e.Marker);

            // only consider event handled if a handler is present.
            // Else allow default behavior of displaying an info window.
            targetPin?.SendTap();

            if (targetPin != null)
            {
                Map.SendInfoWindowClicked(targetPin);
            }
        }