IMapClusterImageProvider.GetClusterImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by the handler when building a cluster marker to obtain a custom image for it.
public:
Microsoft::Maui::IImageSource ^ GetClusterImage(System::Collections::Generic::IReadOnlyList<Microsoft::Maui::Maps::IMapPin ^> ^ pins, int count, Microsoft::Maui::Devices::Sensors::Location ^ location);
public Microsoft.Maui.IImageSource? GetClusterImage(System.Collections.Generic.IReadOnlyList<Microsoft.Maui.Maps.IMapPin> pins, int count, Microsoft.Maui.Devices.Sensors.Location location);
abstract member GetClusterImage : System.Collections.Generic.IReadOnlyList<Microsoft.Maui.Maps.IMapPin> * int * Microsoft.Maui.Devices.Sensors.Location -> Microsoft.Maui.IImageSource
Public Function GetClusterImage (pins As IReadOnlyList(Of IMapPin), count As Integer, location As Location) As IImageSource
Parameters
- pins
- IReadOnlyList<IMapPin>
The pins contained in the cluster. May be smaller than count on
platforms where not every cluster member's pin can be resolved.
- count
- Int32
The authoritative number of pins in the cluster, independent of how many
could be resolved into pins.
- location
- Location
The location (centroid) of the cluster.
Returns
The image to use for the cluster marker, or null to use the default marker.