Map.ClusterImageProvider Property
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.
Gets or sets a callback that returns a custom icon for a cluster marker, computed from the
supplied ClusterInfo (count, clustering identifier, pins, location).
Return null to fall back to ClusterImageSource, then to the
default cluster marker. Only used when clustering is enabled.
public:
property Func<Microsoft::Maui::Controls::Maps::ClusterInfo ^, Microsoft::Maui::Controls::ImageSource ^> ^ ClusterImageProvider { Func<Microsoft::Maui::Controls::Maps::ClusterInfo ^, Microsoft::Maui::Controls::ImageSource ^> ^ get(); void set(Func<Microsoft::Maui::Controls::Maps::ClusterInfo ^, Microsoft::Maui::Controls::ImageSource ^> ^ value); };
public Func<Microsoft.Maui.Controls.Maps.ClusterInfo,Microsoft.Maui.Controls.ImageSource?>? ClusterImageProvider { get; set; }
member this.ClusterImageProvider : Func<Microsoft.Maui.Controls.Maps.ClusterInfo, Microsoft.Maui.Controls.ImageSource> with get, set
Public Property ClusterImageProvider As Func(Of ClusterInfo, ImageSource)
Property Value
Remarks
The callback returns the complete icon (draw the count yourself if desired). The returned ImageSource is loaded asynchronously by the platform handler, like ImageSource. Setting this value rebuilds existing cluster markers immediately.