Back to results for “Geolocation”
.NET MAUI › Maps & Location

How do you show a map in a MAUI app?

Beginner

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.

Common follow-ups: What package provides maps? | Which native maps are used?