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 5.4.0
Styles and rendering
- Added an
-[MGLMapSnapshotter startWithOverlayHandler:completionHandler:]
method to provide the snapshot’s currentCGContext
in order to perform custom drawing onMGLMapSnapshot
objects. (#15530) - Fixed an issue that caused
MGLTileSourceOptionMaximumZoomLevel
to be ignored when settingMGLTileSource.configurationURL
. (#15581) - Fixed an assertion hit caused by possibility of adding a layer to an incompatible source. (#15644)
- Fixed crashes triggered when
MGLSource
andMGLStyleLayer
objects are accessed after having been invalidated after a style change. (#15539) - Fixed an issue where the collision boxes for symbols would not be updated when
MGLSymbolStyleLayer.textTranslation
orMGLSymbolStyleLayer.iconTranslation
were used. (#15467) - Enabled use of
MGLSymbolStyleLayer.textOffset
option together withMGLSymbolStyleLayer.textVariableAnchor
(ifMGLSymbolStyleLayer.textRadialOffset
option is not provided). (#15542) - Fixed an issue that caused constant repainting for sources with invisible layers. (#15600)
User interaction
- Fixed an issue that caused the tilt gesture to trigger too easily and conflict with pinch or pan gestures. (#15349)
- Fixed an issue that caused the map to rotate too easily during a pinch gesture. (#15562)
Performance improvements
- Improved offline region download performance by batching certain database activities. (#15521)
- Newly loaded labels appear faster on the screen. (#15308)
Other changes
- Fixed a bug where the completion block passed to
-[MGLMapView flyToCamera:completionHandler:]
(and related methods) wouldn’t be called. (#15473) - Fixed a crash when offline pack invalidation happened on different threads. (#15582)
- Fixed a potential integer overflow at high zoom levels. (#15560)
- Fixed a bug with annotation view positions after camera transitions. (#15122)
Recent changes
See the full changelog for previous releases.