A newer version of the Maps SDK is available
This page uses v6.4.1 of the Mapbox Maps SDK. A newer version of the SDK is available. Learn about the latest version, v10.6.0, in the Maps SDK documentation.
Display a user's approximate location
Support user privacy options on iOS 14 and above by displaying an approximated user location.
Apply a style designed in Mapbox Studio
Use a style created in Mapbox Studio with the Mapbox Maps SDK for iOS.
Add a line style layer from GeoJSON
Add a polyline from a GeoJSON source and style it dynamically.
Add multiple shapes from a single shape source
Create style layers from a shape collection feature.
Adjust lighting of 3D buildings
Adjust the lighting properties for fill extrusions with a slider.
Cluster point data
Color & display data point clusters using interval-based property styling.
Customize the user location annotation
Override the default user location annotation.
Default callout usage
Use default appearance and interactivity of annotation callout views.
Use a variety of professionally designed styles with the Mapbox Maps SDK for iOS.
Display custom views as callouts
Create and display a custom callout view with the Mapbox Maps SDK for iOS.
Display multiple images in a symbol layer
Display multiple images within the same symbol layer with the Mapbox Maps SDK for iOS.
Display multiple shapes on a map
Display multiple shapes from a single source of data.
Dynamically style interactive points
Add interactive, dynamically-styled points, derived from a web API call.
Manage offline regions
Pan around a map to select a region and download one or more regions for offline use.
Restrict map panning to an area
Prevent a map from being panned to a different place by constraining the viewport.
Select a feature within a layer
Allow a user to select a feature within a style layer.
Switch between user tracking modes
Toggle between user tracking modes using a custom UIButton.
Use images to cluster point data
Color & display clustered point data using images and interval-based property styling.