MapboxMapsObjC.iOS
11.6.0
See the version list below for details.
dotnet add package MapboxMapsObjC.iOS --version 11.6.0
NuGet\Install-Package MapboxMapsObjC.iOS -Version 11.6.0
<PackageReference Include="MapboxMapsObjC.iOS" Version="11.6.0" />
<PackageVersion Include="MapboxMapsObjC.iOS" Version="11.6.0" />
<PackageReference Include="MapboxMapsObjC.iOS" />
paket add MapboxMapsObjC.iOS --version 11.6.0
#r "nuget: MapboxMapsObjC.iOS, 11.6.0"
#:package MapboxMapsObjC.iOS@11.6.0
#addin nuget:?package=MapboxMapsObjC.iOS&version=11.6.0
#tool nuget:?package=MapboxMapsObjC.iOS&version=11.6.0
Mapbox for Xamarin.iOS
A Xamarin.iOS binding library for Mapbox library.
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/ Replace your Mapbox access token in
ViewController.cs
var myResourceOptions = new MBMResourceOptions(
"YOUR_MAPBOX_TOKEN", // TODO Put your token here
null, null, null, null);
or you can update Info.plist file
<key>MBXAccessToken</key>
<string>YOUR_MAPBOX_TOKEN</string>
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 | net8.0-ios17.5 is compatible. net9.0-ios was computed. net10.0-ios was computed. |
-
net8.0-ios17.5
- MapboxCoreMaps.iOS (>= 11.6.0)
- MapboxMaps.iOS (>= 11.6.0)
- Xamarin.Build.Download (>= 0.11.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MapboxMapsObjC.iOS:
| Package | Downloads |
|---|---|
|
Mapbox.Maui
.NET MAUI control and APIs for Mapbox |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.8.0 | 692 | 12/1/2024 |
| 11.7.1 | 201 | 10/28/2024 |
| 11.6.0 | 721 | 9/10/2024 |
| 11.5.2.7 | 1,810 | 8/26/2024 |
| 11.5.2.6 | 214 | 8/14/2024 |
| 11.5.2.5 | 198 | 8/13/2024 |
| 11.5.2.4 | 183 | 8/13/2024 |
| 11.5.2.3 | 199 | 8/11/2024 |
| 11.5.2.2 | 207 | 8/8/2024 |
| 11.5.2.1 | 135 | 8/3/2024 |
| 11.5.2 | 139 | 8/3/2024 |
| 11.5.1.1 | 221 | 7/19/2024 |
| 11.5.1 | 194 | 7/11/2024 |
| 11.4.0.2 | 179 | 7/9/2024 |
| 11.4.0.1 | 180 | 7/4/2024 |
| 11.4.0 | 284 | 6/27/2024 |
| 11.3.0.3 | 207 | 6/19/2024 |
| 11.3.0.2 | 207 | 5/24/2024 |
| 11.3.0.1 | 174 | 5/21/2024 |
| 11.3.0 | 215 | 5/5/2024 |
| 11.2.0.1 | 194 | 4/5/2024 |
| 11.2.0 | 160 | 4/4/2024 |
| 11.1.0.1 | 261 | 2/28/2024 |
| 11.0.0.3 | 211 | 2/22/2024 |
| 11.0.0.2 | 201 | 2/21/2024 |
| 11.0.0.1 | 197 | 2/20/2024 |
| 11.0.0 | 183 | 2/17/2024 |
| 10.11.1.1 | 869 | 7/20/2023 |
| 10.11.1 | 445 | 7/15/2023 |