This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
ios-v3.7.0
Changes since Mapbox iOS SDK v3.6.4:
Networking and storage
- Added a new
MGLMapSnapshotter
class for capturing rendered map images from anMGLMapView
’s camera. (#9891) - Reduced the time it takes to create new
MGLMapView
instances in some cases. (#9864) - Added support for forced cache revalidation that will eliminate flickering that was sometimes visible for certain types of tiles (e.g., traffic tiles). (#9670, #9103)
- Improved the performance of the SDK when parsing vector tile data used to render the map. (#9312)
Styles
- Added a new type of source, represented by the
MGLImageSource
class at runtime, that displays a georeferenced image. (#9110) - Setting a style using
MGLMapView
'sstyleURL
property now smoothly transitions from the previous style to the new style and maintains equivalent layers and sources along with their identifiers. (#9256) - Added
MGLCircleStyleLayer.circlePitchAlignment
andMGLSymbolStyleLayer.iconPitchAlignment
properties to control whether circles and symbols lie flat against a tilted map. (#9426, #9479) - Added an
MGLSymbolStyleLayer.iconAnchor
property to control where an icon is anchored. (#9849) - The
maximumTextWidth
andtextLetterSpacing
properties ofMGLSymbolStyleLayer
are now compatible withMGLSourceStyleFunction
s andMGLCompositeStyleFunction
s, allowing data-driven styling of these properties. (#9870) - The
MGLSymbolStyleLayer.textAnchor
,MGLSymbolStyleLayer.textJustification
andMGLLineStyleLayer.lineJoin
properties are now compatible withMGLSourceStyleFunction
s andMGLCompositeStyleFunction
s, allowing data-driven styling of these properties. (#9583) - Improved the legibility of labels that follow lines when the map is tilted. (#9009)
- Fixed an issue that could cause flickering when a translucent raster style layer was present. (#9468)
- Fixed an issue that could cause antialiasing between polygons on the same layer to fail if the fill layers used data-driven styling for the fill color. (#9699)
- The previously deprecated support for style classes has been removed. For interface compatibility, the API methods remain, but they are now non-functional.
Annotations
- Fixed several bugs and performance issues related to the use of annotations backed by
MGLAnnotationImage
. The limits on the number and size of images and glyphs has been effectively eliminated and should now depend on hardware constraints. These fixes also apply to images used to represent icons inMGLSymbolStyleLayer
. (#9213) - Added an
overlays
property toMGLMapView
. (#8617) - Selecting an annotation no longer sets the user tracking mode to
MGLUserTrackingModeNone
. (#10094) - Added
-[MGLMapView cameraThatFitsShape:direction:edgePadding:]
to get a camera with zoom level and center coordinate computed to fit a shape. (#10107) - Added support selection of shape and polyline annotations.(#9984)
- Fixed an issue where view annotations could be slightly misaligned. View annotation placement is now rounded to the nearest pixel. (#10219)
- Fixed an issue where a shape annotation callout was not displayed if the centroid was not visible. (#10255)
User interaction
- Users of VoiceOver can now swipe left and right to navigate among visible places, points of interest, and roads. (#9950)
- Increased the default maximum zoom level from 20 to 22. (#9835)
- Fixed an issue where the same value was passed in as the
oldCamera
andnewCamera
parameters to the-[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:]
method. (#10433)
Other changes
- Added a Bulgarian localization. (#10309)
- Fixed an issue that could cause line label rendering glitches when the line geometry is projected to a point behind the plane of the camera. (#9865)
- Fixed an issue that could cause a crash when using
-[MGLMapView flyToCamera:completionHandler:]
and related methods with zoom levels at or near the maximum value. (#9381) - Added
-[MGLMapView showAttribution:]
to allow custom attribution buttons to show the default attribution interface. (#10085) - Fixed a conflict between multiple copies of SMCalloutView in a project. (#10183)
- Fixed a crash when enabling the scale bar in iOS 8. (#10241)
Documentation is available online or as part of the download.