StarChick971
StarChick971

Reputation: 21

Integrating Mapbox with .NET MAUI

I am currently developping an native Android app using Mapbox with Visual Studio (using some Mapbox nugets). I have to do the whole dev to address iOS customers but Xamarin.Forms nuget version of Mapbox is out of date, both Android & iOS SDKs have been updated since.

As Microsoft has just released the first .NET MAUI Release Candidate RC1, i.e. the successor of Xamarin.Forms, I would like to start over a new project so I can manage one development pipeline to deploy on either Android or iOS afterwards.

So I open this thread in order to share help to embbed Mapbox in a fresh new .NET MAUI project.

How should we proceed to simply display a Mapbox map view with a .NET MAUI project? Thank you!

Upvotes: 1

Views: 2376

Answers (2)

bcr
bcr

Reputation: 2063

The best approach for large SDKs like Mapbox, etc. and for any Swift-only SDKs is to use the Slim Bindings pattern. This way you can only bind what you actually use and can shape the API in whatever way that best fits your needs.

Upvotes: 0

Fernando Silva
Fernando Silva

Reputation: 101

The best way for now is implementing a Maui Blazor app and using a BlazorWebView to put a MapBox in your page.

See Build a .NET MAUI Blazor app documentation

Upvotes: 1

Related Questions