Bindings.Mapbox.iOS
11.8.0
See the version list below for details.
dotnet add package Bindings.Mapbox.iOS --version 11.8.0
NuGet\Install-Package Bindings.Mapbox.iOS -Version 11.8.0
<PackageReference Include="Bindings.Mapbox.iOS" Version="11.8.0" />
<PackageVersion Include="Bindings.Mapbox.iOS" Version="11.8.0" />
<PackageReference Include="Bindings.Mapbox.iOS" />
paket add Bindings.Mapbox.iOS --version 11.8.0
#r "nuget: Bindings.Mapbox.iOS, 11.8.0"
#:package Bindings.Mapbox.iOS@11.8.0
#addin nuget:?package=Bindings.Mapbox.iOS&version=11.8.0
#tool nuget:?package=Bindings.Mapbox.iOS&version=11.8.0
Mapbox for Xamarin.iOS
A Xamarin.iOS binding library for Mapbox library.
Primary Attribution
This iOS binding work is based directly on Tuyen Vu Duc's repositories:
This folder is included inside mapbox-for-dotnet to keep Android, iOS, and
test harness validation together, but the binding itself and the Objective-C
bridge strategy come from Tuyen's work.
About
This project is maintained by tuyen-vuduc.<br> At the momment, I don't have free time to contribute to the project, but if there is a paid request, I am happy to talk to.
Installation
Install-Package MapboxMapObjC.iOS
Usage
- 1/ How to use: Please follow the official guide here.
- 2/ Create
Mapbox.iOSQs.propsfile fromMapbox.iOSQs.props.template
// It will look like this
- Mapbox.iOSQS
|- Mapbox.iOSQs.csproj
|- Mapbox.iOSQs.props
- 3/ Replace
YOUR_MAPBOX_DOWNLOADS_TOKENwith your real token from Mapbox
<MAPBOX_DOWNLOADS_TOKEN>YOUR_MAPBOX_DOWNLOADS_TOKEN</MAPBOX_DOWNLOADS_TOKEN>
- 4/ Add your Mapbox access token to the ignored
Mapbox.iOSQs.propsfile
<MapboxAccessToken>YOUR_MAPBOX_ACCESS_TOKEN</MapboxAccessToken>
How to upgrade
It takes time to do the binding library and/or upgrade it. Microsoft intends to make it a lot simpler in the future, but not now.
Here are steps if you want to make changes and/or upgrade to the libraries
- 1/ Download latest artifacts from Mapbox as per its installation guide
- 2/ Run
chmod +x ./gen.sh - 3/ Run
./gen.sh - 4/ Compile and correct any errors shown up
- 5/ Update
AssemblyInfo.csfiles with the right version number - 6/ Update
*.nuspecfiles to have the right version number - 7/ Run
sh build.shto create nuget packages - 8/ Commit and create a PR
NOTES
- Check symbols in the lib
nm -m 'artifacts/MapboxMaps.xcframework/ios-arm64/MapboxMaps.framework/MapboxMaps' | grep '_TtC10MapboxMaps22AnyTouchGestureHandler'
IMPROTANT
Mapbox SDK for iOS now is written in Swift and not very compatible with Objective-C, hence it won't be that friendly when doing the binding. I have to create an additional framework to make the bridge between Swift & C# in Objective-C, it's really a time consuming task. It'll require support from the developers like you in the community.
Further
Check out the document site for further details.
Maintainer
This project is maintained by tuyen-vuduc in his spare time and/or when requested.<br>
If you find this project is helpful, please give it a star, become a sponsor of the project and/or buy him a coffee.
License
Mapbox binding library for iOS itself is released under the 3-Clause BSD license. See LICENSE for details.
This license doesn't override and/or replace the licence from Mapbox.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-ios26.0 is compatible. |
-
net10.0-ios26.0
- Bindings.Mapbox.iOS.Common (>= 24.8.0)
- Bindings.Mapbox.iOS.CoreMaps (>= 11.8.0)
- Bindings.Mapbox.iOS.Turf (>= 3.0.0)
- Xamarin.Build.Download (>= 0.11.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Bindings.Mapbox.iOS:
| Package | Downloads |
|---|---|
|
Bindings.Mapbox.iOS.MapsObjC
.NET iOS bindings for Mapbox iOS SDK - MapboxMapsObjC |
GitHub repositories
This package is not used by any popular GitHub repositories.