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. A full changelog is also available.
If you have any questions, please see our help page. We welcome your bug reports, feature requests, and contributions.
Changes in version 4.2.0
Packaging
- When integrating this framework using CocoaPods, the included bcsymbolmap files are now preserved. If you have bitcode enabled and you are seeing incorrectly symbolicated crash logs, you should create a build phase in your Xcode project that copies these bcsymbolmap files to your app’s Products Directory when installing. (#12257)
Styles and rendering
- Added an
MGLRasterStyleLayer.rasterResamplingMode
property for configuring how raster style layers are overscaled. (#12176) -[MGLStyle localizeLabelsIntoLocale:]
and-[NSExpression mgl_expressionLocalizedIntoLocale:]
can automatically localize labels into Japanese or Korean based on the system’s language settings. (#12286)- The
c
andd
options are supported within comparison predicates for case and diacritic insensitivity, respectively. (#12329) - Added the
collator
andresolved-locale
expression operators to more precisely compare strings in style JSON. A subset of this functionality is available through predicate options when creating anNSPredicate
. (#11869) - Fixed a crash when trying to parse expressions containing legacy filters. (#12263)
- Fixed a crash that occurred when creating an
MGL_MATCH
expression using non-expressions as arguments. (#12332)
Networking and storage
- Improved caching performance. (#12072)
Other changes
- Added
-[MGLMapView camera:fittingShape:edgePadding:]
and-[MGLMapView camera:fittingCoordinateBounds:edgePadding:]
allowing you specify the pitch and direction for the calculated camera. (#12213) - Added
-[MGLMapSnapshot coordinateForPoint:]
that returns a map coordinate for a specified snapshot image point. (#12221) - Reduced memory usage when collision debug mode is disabled. (#12294)
- Fixed a bug with annotation view touch handling when a non-zero
centerOffset
is specified. (#12234)