Advertisement
Beginner .NET MAUI, Maps & Location

How do you show a map in a MAUI app?

Short answer

Add the Microsoft.Maui.Controls.Maps package, initialize it with UseMauiMaps() in MauiProgram, and place a Map control. It uses the native map on each platform (Apple Maps, Google Maps, Bing/Windows). Set MapType and the visible region.

Save .NET MAUI mock interview
Advertisement
AModel answer
Add the Microsoft.Maui.Controls.Maps package, initialize it with UseMauiMaps() in MauiProgram, and place a Map control. It uses the native map on each platform (Apple Maps, Google Maps, Bing/Windows). Set MapType and the visible region.
builder.UseMauiMaps();
// XAML
<maps:Map x:Name="map" MapType="Street" />
Real-world example
A store-locator screen embeds a native map showing nearby branches.
Likely follow-ups
  • What package provides maps? | Which native maps are used?
Related topics