예제 #1
0
        void OnInfoWindowClick(object sender, InfoWindowClickEventArgs e)
        {
            var pin = GetMapPin(e.Marker);

            CoworkingClicked.Invoke(sender, new CoworkingMapEventArgs {
                CoworkingId = pin.CoworkingId
            });
        }
        void OnInfoWindowClick(object sender, InfoWindowClickEventArgs e)
        {
            var customPin = GetCustomPin(e.Marker);
            var marcador  = new MarkerOptions().SetPosition(e.Marker.Position).SetTitle("ponto");

            _map.AddMarker(marcador);
            //if (customPin == null)
            //{
            //    throw new Exception("Custom pin not found");
            //}

            //if (!string.IsNullOrWhiteSpace(customPin.Url))
            //{
            //    var url = Android.Net.Uri.Parse(customPin.Url);
            //    var intent = new Intent(Intent.ActionView, url);
            //    intent.AddFlags(ActivityFlags.NewTask);
            //    Android.App.Application.Context.StartActivity(intent);
            //}
        }