NET MAUI 11 Preview 2 introduces pin clustering for the Map control on Android and iOS/Mac Catalyst. A single property `IsClusteringEnabled="True"` activates automatic grouping of nearby pins into cluster markers with count badges. Pins can be assigned a `ClusteringIdentifier` to form independent clusters by category (e.g., coffee shops vs. parks). A `ClusterClicked` event provides access to the pins in a cluster, their geographic center, and the ability to suppress default zoom behavior. On Android, a custom grid-based algorithm handles clustering; on iOS/Mac Catalyst, native MapKit `MKClusterAnnotation` support is used. The feature is available in .NET 11 Preview 2 with sample code in the maui-samples repository.

3m read timeFrom devblogs.microsoft.com
Post cover image
Table of contents
What is pin clustering? Copy linkEnable clustering Copy linkSeparate clustering groups Copy linkHandle cluster taps Copy linkPlatform notes Copy linkTry it out Copy linkSummary Copy link

Sort: