Skip to content

Add Map pin clustering sample for .NET MAUI 11 preview 3#743

Draft
davidortinau wants to merge 5 commits intomainfrom
map-clustering-sample
Draft

Add Map pin clustering sample for .NET MAUI 11 preview 3#743
davidortinau wants to merge 5 commits intomainfrom
map-clustering-sample

Conversation

@davidortinau
Copy link
Contributor

Summary

Adds a standalone sample demonstrating the new Map pin clustering APIs introduced in .NET MAUI 11 preview 2 (dotnet/maui#33831).

APIs demonstrated

  • Map.IsClusteringEnabled — enables automatic grouping of nearby pins
  • Pin.ClusteringIdentifier — groups pins into named clusters
  • Map.ClusterClicked — event fired when a cluster annotation is tapped
  • ClusterClickedEventArgs — exposes Pins, Location, and Handled properties

Files

  • 11.0/UserInterface/Views/Map/MapClustering/ — complete standalone project
  • Targets net11.0-android, net11.0-ios, net11.0-maccatalyst, net11.0-windows
  • Uses official 11.0.0-preview.2.26152.10 packages from NuGet.org
  • Includes docregion markers for docs snippet extraction
  • README with screenshot

Platform notes

  • iOS/Mac Catalyst: Uses native MKClusterAnnotation — full support
  • Android: Custom grid-based clustering algorithm
  • Windows: Not yet supported (Map control limitation)

Screenshot (Mac Catalyst)

Demonstrates the new Map.IsClusteringEnabled, Pin.ClusteringIdentifier,
and Map.ClusterClicked APIs introduced in .NET MAUI 11 preview 2.

- Standalone sample under 11.0/UserInterface/Views/Map/MapClustering/
- Targets net11.0-android, net11.0-ios, net11.0-maccatalyst, net11.0-windows
- Uses official 11.0.0-preview.2.26152.10 packages from NuGet.org
- Includes docregion markers for docs snippet extraction
- README with screenshot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Copy link
Contributor

Copilot AI commented Mar 11, 2026

@davidortinau I've opened a new pull request, #746, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits March 11, 2026 12:12
* Initial plan

* Remove unnecessary .gitkeep file from images directory

Co-authored-by: davidortinau <41873+davidortinau@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: davidortinau <41873+davidortinau@users.noreply.github.com>
Include 11.0.x in the dotnet-version list for both build-all and
build-pr workflows so that net11.0-* sample projects can be built.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jfversluis jfversluis changed the title Add Map pin clustering sample for .NET MAUI 11 preview 2 Add Map pin clustering sample for .NET MAUI 11 preview 3 Mar 12, 2026
@jfversluis jfversluis marked this pull request as draft March 12, 2026 16:07
@jfversluis
Copy link
Member

This is available in preview 3, not 2. So lets park this until p3 comes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants