Bindings.Mapbox.iOS.Turf 4.0.0.2

dotnet add package Bindings.Mapbox.iOS.Turf --version 4.0.0.2
                    
NuGet\Install-Package Bindings.Mapbox.iOS.Turf -Version 4.0.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bindings.Mapbox.iOS.Turf" Version="4.0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bindings.Mapbox.iOS.Turf" Version="4.0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Bindings.Mapbox.iOS.Turf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bindings.Mapbox.iOS.Turf --version 4.0.0.2
                    
#r "nuget: Bindings.Mapbox.iOS.Turf, 4.0.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bindings.Mapbox.iOS.Turf@4.0.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bindings.Mapbox.iOS.Turf&version=4.0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Bindings.Mapbox.iOS.Turf&version=4.0.0.2
                    
Install as a Cake Tool

Mapbox .NET iOS Bindings

.NET iOS bindings for the native Mapbox iOS SDK.[^tuyen] These packages target net10.0-ios and iOS 15 or later.

Install

For an app that renders Mapbox maps, install the Maps package and the Objective-C bridge package:

dotnet add package Bindings.Mapbox.iOS --version 11.23.0.2
dotnet add package Bindings.Mapbox.iOS.MapsObjC --version 11.23.0.2

Bindings.Mapbox.iOS brings in the Common, CoreMaps, and Turf binding packages. Install those directly only when you need those APIs without a map view.

Tokens

Set MAPBOX_DOWNLOADS_TOKEN to a secret Mapbox downloads token before building. The package targets use it to download the native Mapbox frameworks:

export MAPBOX_DOWNLOADS_TOKEN=sk...

Set a public Mapbox access token for runtime tile access. The usual options are an MBXAccessToken entry in Info.plist:

<key>MBXAccessToken</key>
<string>$(MapboxAccessToken)</string>

or setting it in code before creating the map:

MapboxCommon.MBXMapboxOptions.SetAccessTokenForToken("pk...");

Minimal Map

using CoreGraphics;
using CoreLocation;
using MapboxCoreMaps;
using MapboxMaps;
using MapboxMapsObjC;
using UIKit;

var camera = new TMBCameraOptions(
    new CLLocationCoordinate2D(40.7128, -74.0060),
    UIEdgeInsets.Zero,
    CGPoint.Empty,
    10,
    0,
    0);

var options = MapInitOptionsFactory.CreateWithMapOptions(
    null,
    camera,
    BuiltInStyles.Streets,
    null,
    (nint)1);

var mapView = MapViewFactory.CreateWithFrame(View.Bounds, options);
mapView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;
View.AddSubview(mapView);

[^tuyen]: The iOS binding and Objective-C bridge strategy build on Tuyen Vu Duc's mapbox-ios-binding and mapbox-ios-objective-c. Native Mapbox SDK components and Mapbox artifacts are copyright Mapbox, Inc. Please consider sponsoring Tuyen.

Product Compatible and additional computed target framework versions.
.NET net10.0-ios26.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Bindings.Mapbox.iOS.Turf:

Package Downloads
Bindings.Mapbox.iOS

C# bindings for Mapbox iOS SDK - MapboxMaps

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0.2 124 5/6/2026
4.0.0.1 106 5/6/2026
3.0.0 124 5/5/2026