Microsoft.Maui.Controls.Maps 10.0.71

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Maui.Controls.Maps --version 10.0.71
                    
NuGet\Install-Package Microsoft.Maui.Controls.Maps -Version 10.0.71
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="10.0.71" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Maui.Controls.Maps" Version="10.0.71" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Maui.Controls.Maps" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Maui.Controls.Maps --version 10.0.71
                    
#r "nuget: Microsoft.Maui.Controls.Maps, 10.0.71"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Maui.Controls.Maps@10.0.71
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Maui.Controls.Maps&version=10.0.71
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Maui.Controls.Maps&version=10.0.71
                    
Install as a Cake Tool

Microsoft.Maui.Controls.Maps

Microsoft.Maui.Controls.Maps brings an easy-to-use map control to .NET MAUI apps so you can display maps, drop pins, draw shapes, and react to user interactions on Android and iOS from one shared codebase. (Windows implementation is not available yet.)

🚀 Get started

  1. Install the package

    dotnet add package Microsoft.Maui.Controls.Maps
    
  2. Enable Maps in MauiProgram.cs

    var builder = MauiApp.CreateBuilder();
    builder
        .UseMauiApp<App>()
        .UseMauiMaps(); // registers map handlers
    
  3. Add platform credentials

    • Android: Add your Google Maps API key to Platforms/Android/AndroidManifest.xml
      <application>
          <meta-data android:name="com.google.android.geo.API_KEY"
                     android:value="YOUR_API_KEY_HERE" />
      </application>
      
    • iOS: No additional keys required for the built-in map provider.
    • Windows: The Maps control is currently not implemented on Windows. For updates, see this tracking link.
  4. Place a map in your page

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:maps="http://schemas.microsoft.com/dotnet/2021/maui/maps" xmlns:sensors="clr-namespace:Microsoft.Maui.Devices.Sensors;assembly=Microsoft.Maui.Essentials"> maps:Map maps:Map.Pins <maps:Pin Label="Downtown" Address="Main Street" Type="Place"> maps:Pin.Location sensors:Location <x:Arguments> <x:Double>47.6205</x:Double> <x:Double>-122.3493</x:Double> </x:Arguments> </sensors:Location> </maps:Pin.Location> </maps:Pin> </maps:Map.Pins> </maps:Map> </ContentPage>


## 🧭 Features at a glance

- **Pins**: Labels, addresses, pin types, custom images, and tap handling via `PinClicked`.
- **Shapes**: Draw **polygons**, **polylines**, and **circles** to outline areas or routes.
- **Map interactions**: Handle `MapClicked`, move the camera/region, and programmatically add or remove map elements at runtime.
- **Map display**: Switch map types (e.g., Street, Satellite, Hybrid) and control gesture support (scroll, zoom, rotate).
- **User location**: Show the user’s current location with `IsShowingUser` (platform location permission required).

### Samples: pins and shapes

```xml
<maps:Map xmlns:maps="http://schemas.microsoft.com/dotnet/2021/maui/maps"
       xmlns:sensors="clr-namespace:Microsoft.Maui.Devices.Sensors;assembly=Microsoft.Maui.Essentials"
       MapType="Hybrid" MapClicked="OnMapClicked">
 <maps:Map.Pins>
     <maps:Pin Label="Office" Type="Place">
         <maps:Pin.Location>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.6424</x:Double>
                     <x:Double>-122.3219</x:Double>
                 </x:Arguments>
             </sensors:Location>
         </maps:Pin.Location>
     </maps:Pin>
 </maps:Map.Pins>

 <maps:Map.MapElements>
     <maps:Polygon StrokeColor="Red" FillColor="#40FF0000" StrokeWidth="4">
         <maps:Polygon.Geopath>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.642</x:Double>
                     <x:Double>-122.323</x:Double>
                 </x:Arguments>
             </sensors:Location>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.643</x:Double>
                     <x:Double>-122.326</x:Double>
                 </x:Arguments>
             </sensors:Location>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.640</x:Double>
                     <x:Double>-122.327</x:Double>
                 </x:Arguments>
             </sensors:Location>
         </maps:Polygon.Geopath>
     </maps:Polygon>

     <maps:Polyline StrokeColor="DodgerBlue" StrokeWidth="6">
         <maps:Polyline.Geopath>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.639</x:Double>
                     <x:Double>-122.330</x:Double>
                 </x:Arguments>
             </sensors:Location>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.640</x:Double>
                     <x:Double>-122.335</x:Double>
                 </x:Arguments>
             </sensors:Location>
         </maps:Polyline.Geopath>
     </maps:Polyline>

     <maps:Circle StrokeColor="Green" FillColor="#40008000" StrokeWidth="3">
         <maps:Circle.Center>
             <sensors:Location>
                 <x:Arguments>
                     <x:Double>47.641</x:Double>
                     <x:Double>-122.329</x:Double>
                 </x:Arguments>
             </sensors:Location>
         </maps:Circle.Center>
         <maps:Circle.Radius>
             <maps:Distance>
                 <x:Arguments>
                     <x:Double>200</x:Double>
                 </x:Arguments>
             </maps:Distance>
         </maps:Circle.Radius>
     </maps:Circle>
 </maps:Map.MapElements>
</maps:Map>

Samples: interactions and map modes

// In code-behind
void OnMapClicked(object sender, MapClickedEventArgs e)
{
    // Drop a pin where the user tapped
    var map = (Map)sender;
    map.Pins.Add(new Pin
    {
        Label = "Dropped pin",
        Type = PinType.Place,
        Location = e.Location
    });

    // Move/zoom to the tapped location
    map.MoveToRegion(MapSpan.FromCenterAndRadius(e.Location, Distance.FromMeters(500)));
}

// Toggle map display mode
void ToggleMapType(Map map) =>
    map.MapType = map.MapType == MapType.Street ? MapType.Satellite : MapType.Street;

// Common runtime toggles
void EnableLocationAndTraffic(Map map)
{
    map.IsShowingUser = true;      // requires location permission on the device
    map.IsTrafficEnabled = true;   // show live traffic where supported
}

📚 Learn more

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net10.0-windows10.0.19041 is compatible.  net10.0-windows10.0.20348 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Microsoft.Maui.Controls.Maps:

Package Downloads
CommunityToolkit.Maui.Maps

The .NET MAUI Community Maps Toolkit is a collection of Maps

Reactor.Maui.Maps

MauiReactor.Maps is a MauiReactor plugin for the MAUI Maps Control.

Superdev.Maui.Maps

Maps for .NET MAUI apps

Fabulous.MauiControls.Maps

Maps implementation for Fabulous

PlutoFramework

All in one framework for creating web3 mobile applications.

GitHub repositories (11)

Showing the top 11 popular GitHub repositories that depend on Microsoft.Maui.Controls.Maps:

Repository Stars
dotnet/eShop
A reference .NET application implementing an eCommerce site
dotnet/maui-samples
Samples for .NET Multi-Platform App UI (.NET MAUI)
CommunityToolkit/Maui
The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
adospace/reactorui-maui
MauiReactor is a MVU UI framework built on top of .NET MAUI
dotnet-architecture/eshop-mobile-client
eShop mobile & desktop client built with .NET MAUI
Azure-Samples/eShopOnAzure
A variant of https://github.com/dotnet/eShop that uses Azure services
egvijayanand/dotnet-maui-templates
.NET MAUI Project and Item Templates for VS2022, VS2026, and CLI.
egvijayanand/dotnet-maui-samples
Sample apps for working with .NET MAUI
dotnet/maui-labs
Experimental and pre-release tools for .NET MAUI
dorisoy/Dorisoy.SIOT
一款利用.NET 8.0和MAUI框架打造的跨平台牙科治疗机物联网移动端应用,实现了对水温Speedometer监测、高速手机转速RadialGauge显示、电动马达功率检测以及光纤灯光亮度调节等功能的数据采集与仪表盘实时展示,同时支持数据可视化检测和远程操控管理。
AvaloniaUI/Avalonia.Controls.Maui
Avalonia-based Handlers for .NET MAUI
Version Downloads Last Updated
11.0.0-preview.5.26304.4 71 6/9/2026
11.0.0-preview.4.26230.3 183 5/12/2026
11.0.0-preview.3.26203.7 212 4/14/2026
11.0.0-preview.2.26152.10 280 3/10/2026
11.0.0-preview.1.26107.1 363 2/10/2026
10.0.71 1,267 6/10/2026
10.0.70 6,714 5/21/2026
10.0.60 11,825 4/29/2026
10.0.51 29,115 3/25/2026
10.0.50 12,946 3/10/2026
10.0.41 15,202 2/18/2026
10.0.40 5,335 2/12/2026
10.0.31 9,553 2/3/2026
10.0.30 23,655 1/15/2026
10.0.20 20,423 12/16/2025
10.0.11 11,425 11/24/2025
10.0.10 18,672 11/11/2025
10.0.1 1,184 12/9/2025
10.0.0 3,371 11/11/2025
9.0.120 57,793 10/16/2025
Loading failed