Mapbox Maps SDK for iOS
The Mapbox Maps SDK for iOS is an open-source framework for embedding interactive map views with scalable, customizable vector maps into Cocoa Touch applications on iOS 9.0 and above using Objective-C, Swift, or Interface Builder. It takes stylesheets that conform to the Mapbox Style Specification, applies them to vector tiles that conform to the Mapbox Vector Tile Specification, and renders them using OpenGL.
For setup information, check out the Mapbox Maps SDK for iOS homepage. For detailed usage instructions, read “First steps with the Mapbox Maps SDK for iOS” and consult the online examples.
If you have any questions, please see our help page. We welcome your bug reports, feature requests, and contributions.
Changes in version 4.8.0
Styles and rendering
- Added an
MGLStyle.performsPlacementTransitions
property to control how long it takes for colliding labels to fade out. (#13565) - Fixed a crash when casting large numbers in
NSExpression
. (#13580) - Added the
-[MGLShapeSource leavesOfCluster:offset:limit:]
,-[MGLShapeSource childrenOfCluster:]
,-[MGLShapeSource zoomLevelForExpandingCluster:]
methods for inspecting a cluster in anMGLShapeSource
s created with theMGLShapeSourceOptionClustered
option. Feature querying now returns clusters represented byMGLPointFeatureCluster
objects (that conform to theMGLCluster
protocol). (#12952
Annotations
- Fixed a bug where the
animated
parameter to-[MGLMapView selectAnnotation:animated:]
was being ignored. (#13689) - Fixed a bug where selecting partially on-screen annotations (without a callout) would move the map. (#13727)
Packaging
- Added a Czech localization. (#13782)
Other changes
- Reinstates version 11 as the default Mapbox Streets style (as introduced in 4.7.0). (#13690)
MGLMapView
no longer freezes on external displays connected through AirPlay or CarPlay when the main device’s screen goes to sleep or the user manually locks the screen. (#13701)- Fixed an issue calculating the viewport when setting visible coordinates with a
direction
. (#13761)
Recent changes
See the full changelog for previous releases.