I have a .NET MAUI solution with multiple projects sharing a common library ( General). Maps were working fine previously, but now they're not loading properly in my offline project,
Problem Details
Broken Project: (offline) - map container appears but tiles don't display
Shared Library: General contains map-related views and logic
Map Library: Currently using Microsoft.Maui.Controls.Maps
Current Setup
MauiProgram.cs (Peabody):
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseMauiMaps()
.ConfigureRmt(new ConfigModel()
{
AppType = AppType.Offline,
ApiType = ApiType.PeaBody,
});
return builder.Build();
}
AndroidManifest.xml
<application android:allowBackup="true" android:icon="@mipmap/appicon">
<meta-data android:name="com.google.android.maps.v2.API_KEY"
android:value="XXXXX" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
XAML Implementation:
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:maps="http://schemas.microsoft.com/dotnet/2021/maui/maps">
<Grid>
<maps:Map x:Name="map" HeightRequest="200" />
</Grid>
</ContentPage>
i need solution why it's not working. what possiblly issue with integrationn