A dedicated library and starting sample for integrating Mapbox into your MAUI application.
Install-Package Mapbox.Maui --version 11.1.0-alpha01
Please check out my step-by-step blog post for more details.
1/ Generate/grab MAPBOX_DOWNLOADS_TOKEN
from your Mapbox account page
2/ Android: Put it into your local ~/.gradle/gradle.properties
echo "MAPBOX_DOWNLOADS_TOKEN=YOUR_MAPBOX_DOWNLOADS_TOKEN" >> ~/.gradle/gradle.properties
MapboxMauiQs.props.template
MapboxMauiQs.props
YOUR_MAPBOX_DOWNLOADS_TOKEN
with yours in MapboxMauiQs.props
filemapbox_access_token
from your Mapbox account page
MauiProgram.dev.cs.template
MauiProgram.dev.cs
YOUR_MAPBOX_ACCESS_TOKEN
with yours in MauiProgram.dev.cs
fileNOTE: A handy command to generate a new example
dotnet cake -- --name SymbolClustering --index 58 --group Annotations --title "Add Cluster Symbol Annotations" --subtitle "Show fire hydrants in Washington DC area in a cluster using a symbol layer."
# | Android | iOS | Aligned |
---|---|---|---|
1 | rotateEnabled | rotateEnabled | YES |
2 | scrollEnabled | panEnabled | NOPE |
3 | scrollMode | panMode | NOPE |
4 | simultaneousRotateAndPinchToZoomEnabled | simultaneousRotateAndPinchZoomEnabled | NOPE |
5 | doubleTouchToZoomOutEnabled | doubleTouchToZoomOutEnabled | YES |
6 | doubleTapToZoomInEnabled | doubleTapToZoomInEnabled | YES |
7 | focalPoint | focalPoint | YES |
8 | pitchEnabled | pitchEnabled | YES |
9 | quickZoomEnabled | quickZoomEnabled | YES |
10 | pinchScrollEnabled | pinchScrollEnabled | YES |
11 | pinchToZoomEnabled | N/A | NOPE, pinchEnabled & pinchZoomEnabled |
12 | pinchToZoomDecelerationEnabled | N/A | NOPE |
13 | rotateDecelerationEnabled | N/A | NOPE |
14 | scrollDecelerationEnabled | N/A | NOPE |
15 | increaseRotateThresholdWhenPinchingToZoom | N/A | NOPE |
16 | increasePinchToZoomThresholdWhenRotating | N/A | NOPE |
17 | zoomAnimationAmount | N/A | NOPE |
18 | N/A | pinchEnabled | NOPE |
19 | N/A | pinchZoomEnabled | NOPE |
20 | N/A | panDecelerationFactor | NOPE |
1) Failed to delete .gradle
folder
Due to Java process not killed gratefully.
taskkill -F -im java.exe
2) Xamarin.Build.Download Xamarin.Build.Download is a tool to help download artifacts from remote URL to avoid embedding the native artifacts within the NuGet package with advantages
The downloaded artifact will be located at
~/Library/Caches/XamarinBuildDownload
%USERPROFILE%/AppData/Local/XamarinBuildDownloadCache
3) Kill all .NET processes
taskkill -F -im dotnet.exe
This project is maintained by tuyen-vuduc in his spare time and/or when requested.
If you find this project is helpful and benefit your work/business, please give it a star, become a sponsor of the project and/or buy him a coffee.
This library is release under The BSD 3-Clause License. You are freely to use and make changes. However, this license doesn't override the license from Mapbox.