mapboxmauimapbox-glmobile-developmentmapbox-android

How to use Mapbox Map in .NET MAUI Mobile App?


How to use Mapbox Map service in .NET MAUI app? We need to use the route api services...Is there any service package available ?

I tried Mapbox.Maui(Version 10.11.1.1) NuGet package. But it not compatible with MAUI app. Please let us know if any solution...


Solution

  • As Jason suggested, you can use MAUI component for Mapbox: Mapbox.Maui.

    Gradlew build failed \..MapBox.Maui.Map\obj\xgradle\gradlew.bat --> MapBox.Maui.Map \.nuget\packages\dependencies.gradle\7.6.0.1\buildTransitive\Dependencies.Gradle.targets

    For the above error, you can try to revert to the version 10.11.1. And I also notice that someone else has encountered the same error as you met, see https://github.com/dotnet/maui/discussions/578#discussioncomment-7300820, the author hasn't responded to it yet. You can follow up on that thread or open a new one via this link.