CommunityToolkit.Maui.Maps v5.0.0 - Our Final Maps Release
The good news is that you no longer need us! In .NET 10, MAUI added Windows support to .NET MAUI's own Map control, meaning CommunityToolkit.Maui.Maps is no longer needed.
We recommend moving to .NET MAUI's official Microsoft.Maui.Controls.Maps package.
What changes in this release
UseMauiCommunityToolkitMaps, itsAppBuilderExtensionsclass and the Windows handlerMapHandlerWindowsare marked[Obsolete].- The
CommunityToolkit.Maui.Mapscode will be removed from our repo when we merge our .NET 11 PR (#3331)
How to migrate
- Remove the
CommunityToolkit.Maui.Mapspackage, itsusing CommunityToolkit.Maui.Maps;directives and theUseMauiCommunityToolkitMaps()call. - Add the
Microsoft.Maui.Controls.Mapspackage. The toolkit package used to reference it for you. - Call
builder.UseMauiMaps()inMauiProgram.cson every platform. - On Windows, also add an Azure Maps key:
builder.ConfigureEssentials(essentials => essentials.UseMapServiceToken("YOUR_AZURE_MAPS_SUBSCRIPTION_KEY")). Without a valid key the Windows map shows no map data. See Manage authentication in Azure Maps to get one.
What to expect on Windows
.NET MAUI's Windows map is the WinUI 3 MapControl backed by Azure Maps.
- Supported:
MoveToRegion, theStreet,SatelliteandHybridmap types, traffic, scrolling, zooming and pins. - Not supported yet:
IsShowingUser, polygons, polylines and circles inMapElements, pin labels and info windows, andMapClicked.
Learn more
- .NET MAUI Map documentation
- Deprecation discussion: CommunityToolkit/Maui#3190
- CommunityToolkit.Maui Map documentation
What's Changed
- Add Device Tests, Apply Fixes for Bugs Found by @TheCodeTraveler in #3344