- Fixed an issue causing code signing failures and bloating the framework. (#5850)
- Xcode 7.3 or higher is now required for using this SDK. (#6059)
- Fixed an issue with symbols not being properly stripped from the dynamic framework when built with
make xpackage SYMBOLS=NO
. (#6531)
- A new runtime styling API allows you to adjust the style and content of the base map dynamically. All the options available in Mapbox Studio are now exposed via MGLStyle and subclasses of MGLStyleLayer and MGLSource. (#5727)
- MGLMapView’s
styleURL
property can now be set to an absolute file URL. (#6026) - GeoJSON sources specified by the stylesheet at design time now support
cluster
,clusterMaxZoom
, andclusterRadius
attributes for clustering point features on the base map. (#5724) - TileJSON manifests can now specify
"scheme": "tms"
to indicate the use of TMS coordinates. (#2270) - Fixed rendering artifacts and missing glyphs that occurred after viewing a large number of CJK characters on the map. (#5908)
- Fixed an issue where the style zoom levels were not respected when deciding when to render a layer. (#5811)
- If MGLMapView is unable to obtain or parse a style, it now calls its delegate’s
-mapViewDidFailLoadingMap:withError:
method. (#6145) - Added the
-[MGLMapViewDelegate mapView:didFinishLoadingStyle:]
delegate method, which offers the earliest opportunity to modify the layout or appearance of the current style before the map view is displayed to the user. (#6636) - Fixed an issue causing stepwise zoom functions to be misinterpreted. (#6328)
- A source’s tiles are no longer rendered when the map is outside the source’s supported zoom levels. (#6345)
- Fixed crashes that could occur when loading a malformed stylesheet. (#5736)
- Improved style parsing performance. (#6170)
- Improved feature querying performance. (#6514)
- Added
showAnnotations:animated:
andshowAnnotations:edgePadding:animated:
, which moves the map viewport to show the specified annotations. (#5749) - MGLPolyline annotations and the exterior coordinates of MGLPolygon annotations are now able to be mutated, part or all, and changes are displayed immediately. (#6565)
- To make an MGLPolyline or MGLPolygon span the antimeridian, specify coordinates with longitudes greater than 180° or less than −180°. (#6088)
- Improved the precision of annotations at zoom levels greater than 18. (#5517)
- Deprecated
-[MGLMapViewDelegate mapView:alphaForShapeAnnotation:]
in favor of specifying an alpha component via-[MGLMapViewDelegate mapView:strokeColorForShapeAnnotation:]
or-[MGLMapViewDelegate mapView:fillColorForPolygonAnnotation:]
. (#6706)
- Fixed an issue preventing an MGLMapView from loading tiles while an offline pack is downloading. (#6446)
- Fixed an issue causing an MGLOfflinePack’s progress to continue to update after calling
-suspend
. (#6186) - Fixed an issue preventing cached annotation images from displaying while the device is offline. (#6358)
- Fixed a crash that could occur when the device is disconnected while downloading an offline pack. (#6293)
- Fixed a crash that occurred when encountering a rate-limit error in response to a network request. (#6223)
- Query parameters are no longer stripped from mapbox: URLs used as resource URLs. (#6182, #6432)
- Database errors are now logged to the console. (#6291)
- Fixed an issue where the map view’s center would always be calculated as if the view occupied the entire window. (#6102)
- Fixed a typo in the documentation for the MGLCompassDirectionFormatter class. (#5879)
- Fixed a crash that occurred when a sprite URL lacks a file extension. See this comment to determine who may be affected by this bug. (#5723)
- Right-clicking to open MGLMapView’s context menu no longer prevents the user from subsequently panning the map by clicking and dragging. (#5593)
- Fixed an issue causing overlapping polylines and polygons to be drawn in undefined z-order. Shapes are always drawn in the order they are added to the map, from the oldest on the bottom to the newest on the top. (#5710)
- Improved the design of the generated API documentation. (#5306)
- As the user zooms in, tiles from lower zoom levels are scaled up until tiles for higher zoom levels are loaded. (#5143)
- Per documentation, the first and last coordinates in an MGLPolygon must be identical in order for the polygon to draw correctly. The same is true for an MGLPolygon’s interior polygon. (#5514)
- Added quadkey support and limited WMS support in raster tile URL templates. (#5628)
- Fixed a crash that occurred when a style or other resource URL has a query string. (#5554)
- Fixed an issue causing polyline and polygon annotations to disappear when the zoom level is one less than the maximum zoom level. (#5418)
- Added a property to MGLOfflineStorage,
countOfBytesCompleted
, that indicates the disk space occupied by all cached and offline resources. (#5585) - The
text-pitch-alignment
property is now supported in stylesheets for improved street label legibility on a tilted map. (#5288) - The
icon-text-fit
andicon-text-fit-padding
properties are now supported in stylesheets, allowing the background of a shield to automatically resize to fit the shield’s text. (#5334) - The
circle-pitch-scale
property is now supported in stylesheets, allowing circle features in a tilted base map to scale or remain the same size as the viewing distance changes. (#5576) - The
identifier
property of an MGLFeature may now be either a number or string. (#5514) - Improved the performance of relocating a point annotation by changing its
coordinate
property. (#5385) - Replaced the wireframe debug mask with an overdraw visualization debug mask to match Mapbox GL JS’s overdraw inspector. (#5403)
- MGLMapDebugOverdrawVisualizationMask and MGLMapDebugStencilBufferMask no longer have any effect in Release builds of the SDK. These debug masks have been disabled for performance reasons. (#5555)
- This version of the Mapbox macOS SDK roughly corresponds to version 3.3.0-beta.1 of the Mapbox iOS SDK. The two SDKs have very similar feature sets. The main differences are the lack of user location tracking and annotation views. Some APIs have been adapted to macOS conventions, particularly the use of NSPopover for callout views.
- Renamed the SDK to the Mapbox macOS SDK.
- Fixed an issue in which Mapbox.framework was nested inside another folder named Mapbox.framework. (#4998)
- Added methods to MGLMapView for obtaining the underlying map data rendered by the current style, along with additional classes to represent complex geometry in that data. (#5110)
- An MGLPolygon can now have interior polygons, representing holes knocked out of the overall shape. (#5110)
- Fixed a vector tile parsing bug that sometimes caused properties in the vector tile source to be mismatched. (#5183)
- Fixed a crash passing a mixture of point and shape annotations into
-[MGLMapView addAnnotations:]
. (#5097) - Fixed an issue (speculatively) where the tile cache could be included in iCloud backups. (#5124)
- Improved performance viewing regions with large landcover polygons when viewing a style that uses the Mapbox Streets source. (#2444)
- Fixed a memory leak when using raster resources. (#5141)
- Added
MGLCoordinateInCoordinateBounds()
, a function that tests whether or not a coordinate is in a given bounds. (#5053) - Fixed an issue in which fade transitions (such as on street labels in some styles) lagged behind the map when quickly zooming in and out. (#4579)
- Added new options to
MGLMapDebugMaskOptions
that show wireframes and the stencil buffer instead of the color buffer. (#4359) - Declarations in the API documentation are shown in both Objective-C and Swift. (realm/jazzy#530)
- This version of the Mapbox OS X SDK roughly corresponds to version 3.3.0-alpha.2 of the Mapbox iOS SDK. The two SDKs have very similar feature sets. The main difference is the lack of user location tracking. Some APIs have been adapted to OS X conventions, particularly the use of NSPopover for callout views.