GoogleMap: marker click event with and without ClusterManager
For Xamarin.iOS, the Google map will use the TappedMarker event. It can be used in three different ways.
The first implementation method:
MapView didTapMarker. GMUClusterManager,
[Export("mapView:didTapMarker:")]
public bool TappedMarker(MapView mapView, Marker marker)
{
var id = marker.Title;
Console.WriteLine(id);
return true;
}
:
GoogleMap TappedMarker
this.GMapView.TappedMarker = (map, marker) =>
{
var id = marker.Title;
Console.WriteLine(id);
return true;
}
:
GoogleMap TappedMarker.
this.GMapView.TappedMarker = markerClicked;
markerClicked
bool markerClicked(MapView map, Marker marker)
{
var id = marker.Title;
Console.WriteLine(id);
return true;
}