Edit

Share via


Map

The Map control is a cross-platform view for displaying and annotating maps. The Windows implementation is available through the .NET MAUI Community Toolkit.

Important

Bing Maps has stopped giving out new API keys that are needed for this control to work. We are currently deciding if we should update this control to use the WinUI control that uses Azure Maps or that we will wait for the official .NET MAUI first-party implementation for this. For the time being that means you cannot use this control if you do not already have a Bing Maps API key. Bing Maps as a whole will be discontinued entirely on June 30th, 2025.

Setup

Before you are able to use Map inside your application you will need to install the NuGet package and add an initialization line in your MauiProgram.cs. For more information on how to do this, please refer to the Get Started page.

Usage

The API of the .NET MAUI Community Toolkit implementation for Windows is not different from the API of the .NET MAUI Maps implementation for iOS and Android.

For details on how to work with this map control, please refer to the .NET MAUI Map documentation.

Examples

You can find examples of this control in action in the .NET MAUI Community Toolkit Sample Application.

API

You can find the source code for Map over on the .NET MAUI Community Toolkit GitHub repository.