Mapbox welcomes participation and contributions from everyone. Please read CONTRIBUTING.md to get started.
- Fixed a bug with UIViews being incorrectly updated with a one frame delay. (#483)
- Fixed an issue where CocoaPods users could not install the SDK when using Xcode 12. (#482)
- Fixed an issue where completion blocks were not called until the map was rendered. (#463)
- Fixed an issue that caused a crash when custom location managers did not implement
MGLLocationManager.accuracyAuthorization
. (#474) - Fixed a crash that occurred when
MGLIdeographicFontFamilyName
was set toNO
. (#467, #476) - Fixed an issue with local font glyph rendering, by updating the core library to version 5.1.0. (#475)
- Core library updated to
5.1.0
. (#475)
This release supports iOS 14 and Xcode 12 For building with Xcode 12, please ensure that mapbox-events-ios is at version 0.10.4 or higher. Please see our dependency instructions for more details. This version does not support Apple Silicon Macs (arm64).
- Added
MGLLocationManager.accuracyAuthorization
to check the level of accuracy the app is allowed to support. (#361) - Added
[MGLLocationManager requestTemporaryFullAccuracyAuthorizationWithPurposeKey:]
to allow developers request just-in-time full-accuracy permissions. (#361) - Added
[MGLLocationManagerDelegate locationManagerDidChangeAuthorization:]
to letMGLMapView
know about privacy changes. (#376) - Added
[MGLMapViewDelegate mapView:didChangeLocationManagerAuthorization:]
to allow developers adjust their apps to privacy settings changes. (#376) - Added an approximate user location halo when
MGLLocationManager.accuracyAuthorization
is set toCLAccuracyAuthorizationReducedAccuracy
. (#381) - The
MGLAccuracyAuthorizationDescription
as element ofNSLocationTemporaryUsageDescriptionDictionary
Info.plist key can now be set to describe why you request accuracy authorization. (#392) - Added
[MGLMapViewDelegate mapViewStyleForDefaultUserLocationAnnotationView:]
andMGLUserLocationAnnotationViewStyle
class to allow developers customize the default user location annotation view UI style. (#403) - Added
MGLNetworkConfiguration.connected
property to enforceMGLMapView
to use cached tiles. (#416)
- Fixed an issue where the map would hang periodically (on iOS 14). (#411)
- Fixed a sporadic crash when the application "resigns active", for example, when showing Control Center. (#412)
- Fixed an issue that caused ornaments to consider safe areas when
MGLMapView.automaticallyAdjustsContentInset
is set toNO
. (#420) - Fixed an issue that caused rendering crashes when entering the background. (#432)
- Supported Xcode 12 by updating
mapbox-events-ios
to~> 0.10.4
.(#458) - Core library updated to
4.0.0
. (#458)
- Added the
MGLStyle.accessiblePlaceSourceLayerIdentifiers
property to cause VoiceOver to read aloud certain layers inMGLVectorTileSource
s as places, the same way that certain layers in the Mapbox Streets source are already read aloud as places. (#336) - Added
MGLObserver
,MGLObservable
andMGLEvent
to monitor events from the map view. (#358)
- Fixed symbol flickering on updating symbols in the existing tiles (#630)
- Fixed icons jittering during immediate camera transitions (#260)
- Core library updated to
3.1.0
.
This major release does not include any breaking changes to public APIs. We are treating this release as a SEMVER major change because our installation instructions have changed.
Distribution Updates
Standard installation methods still apply – we will continue to support SDK installation via CocoaPods, Carthage, and manual integration. However, you are now required to authenticate installation with a new access token. For more information about this new process, view our installation guide.
Licensing Updates
Release v6.0.0 updates the Mapbox Maps SDK for iOS to use a pre-built GL Native binary rather than building from source as a submodule dependency. GL Native is changing some of its development workflows to build some Mapbox platform-specific features internally, similar to Chrome/Chromium development. Please refer to the README.md and/or DEVELOPING.md for guidance.
Starting today, new binary releases of GL Native are licensed under the Mapbox Terms of Service. The Mapbox Maps SDKs repos will continue to be public and licensed under BSD-2.
If you have any questions about how this change may impact your use of the Maps SDK, please don’t hesitate to reach out to Mapbox Support to connect with the Mapbox mobile team.
- Added support for the
hash
expression operator that generates a hash value for the given string. Use this function in expressions in style JSON or with theMGL_FUNCTION()
syntax in anNSExpression
format string. (#326) - Improved the performance of the
mgl_distance:
expression function (distance
expression operator in JSON). (#326)
- Fixed an issue where symbols flickered when zooming out. (mapbox/mapbox-gl-native#16471, #273)
- Fixed a potential crash when switching from a style with many layers to an empty style. (mapbox/mapbox-gl-native#16480)
- Fixed a potential memory leak when using VoiceOver. (mapbox/mapbox-gl-native-ios#318)
- Core library updated to
1.8.1
.
- Added the
mgl_distanceFrom:
expression function for calculating the shortest distance between the evaluated feature and anMGLPointAnnotation
,MGLPointCollection
,MGLPolyline
,MGLMultiPolyline
,MGLPolygon
, orMGLMultiPolygon
that you specify as part of anNSExpression
format string. (#295) - Added the
MGLCircleStyleLayer.circleSortKey
property. (mapbox/mapbox-gl-native#15875) - Chinese, Japanese, and Korean characters are now set in the font specified in style JSON or by the
MGLSymbolLayer.textFontNames
property. If the named font is not installed on the device or bundled with the application, the characters are set in a fallback font listed in theMGLIdeographicFontFamilyName
key in the Info.plist file. (#189) - The
MGLIdeographicFontFamilyName
key in the Info.plist file can now specify the fallback fonts for CJK characters by their PostScript names or display names in addition to font family names. For example, you can specifyNotoSansCJKjp-Bold
orNoto Sans CJK JP Bold
, which ensures that the characters are set in bold. You can alternatively specify these font names in theMGLIdeographicFontFamilyName
key ofNSUserDefaults.standardUserDefaults
. (#189) - CJK characters are now laid out according to the font, so fonts with nonsquare glyphs have the correct kerning. (#189)
- Fixed an issue where the baseline for CJK characters was too low compared to non-CJK characters. (#189)
- Fixed a crash when calling the
-[MGLStyle removeImageForName:]
method with the name of a nonexistent image. (mapbox/mapbox-gl-native#16391) - Fixed an issue where properties such as
MGLFillStyleLayer.fillColor
andMGLLineStyleLayer.lineColor
misinterpreted non-opaqueUIColor
s. (#266)
- Added the
-[MGLOfflinePack setContext:completionHandler:]
method for replacing the data associated with an offline pack, such as a name. (#288) - Added the
MGLOfflineStorage.databasePath
andMGLOfflineStorage.databaseURL
properties to obtain the path of the database that contains offline packs and the ambient cache. To customize this path, set theMGLOfflineStorageDatabasePath
in Info.plist. (#298) - Fixed an error that occurred if your implementation of the
-[MGLOfflineStorageDelegate offlineStorage:URLForResourceOfKind:]
method returned a local file URL. (mapbox/mapbox-gl-native#16428)
- Fixed a crash when encountering an invalid polyline. (mapbox/mapbox-gl-native#16409)
- Fixed an issue where an
MGLMapSnapshotOptions
with an invalidMGLMapCamera.centerCoordinate
, negativeMGLMapCamera.heading
, negativeMGLMapCamera.pitch
, and negativeMGLMapSnapshotOptions.zoomLevel
resulted in a snapshot centered on Null Island at zoom level 0 even if the style specified a different initial center coordinate or zoom level. (#280) - Certain logging statements no longer run on the main thread. (mapbox/mapbox-gl-native#16325)
- Fixed an issue that prevented the Maps SDK from warning about a misconfiguration that violated the Mapbox ToS. (#288)
- The
IN
andCONTAINS
predicate operators can now test whether a string is a substring of another string or whether the evaluated feature (SELF
) lies within a givenMGLShape
orMGLFeature
. (#183, #184) - Added the
MGLLineStyleLayer.lineSortKey
andMGLFillStyleLayer.fillSortKey
properties. (#179, #16194, #16220) - The
MGLSymbolStyleLayer.iconTextFit
property now respects the cap insets of any nine-part stretchable image passed into the-[MGLStyle setImage:forName:]
method. You can define the stretchable area in Xcode’s asset catalog or by calling the-[UIImage resizableImageWithCapInsets:]
method. (#182) - Fixed an issue where an
MGLSymbolStyleLayer.lineDashPattern
value of{1, 0}
resulted in hairline gaps. (#16202) - Improved the performance of loading a style that has many style images. (#16187)
- Added the
MGLMapSnapshotter.delegate
property andMGLMapSnapshotterDelegate
protocol for customizing the style before taking a snapshot. (#235) - You no longer need to explicitly capture the
MGLMapSnapshotter
object in the completion handler that you specify in-[MGLMapSnapshotter startWithCompletionHandler:]
. Even if you declare the snapshotter locally without holding a strong reference to it, the snapshotter is only deallocated after the completion handler finishes, and the completion handler generally receives a valid snapshot. (#210) - The
-[MGLMapSnapshotter cancel]
method no longer calls the completion handler passed into-[MGLMapSnapshotter startWithCompletionHandler:]
. (#210) - Fixed an issue where the
MGLMapSnapshotter.loading
property always returnedNO
, even while loading a snapshot. (#210)
- The
MGLIdeographicFontFamilyName
Info.plist key can now be set to the display names or PostScript names of individual fonts. (#189) - The
-[MGLStyle localizeLabelsIntoLocale:]
and-[NSExpression mgl_expressionLocalizedIntoLocale:]
methods can now localize text into Traditional Chinese and Vietnamese. (#173)
- Downloaded offline packs no longer reduce the storage space available for ambient caching of tiles and other resources. (#15622)
- Added the
-[MGLOfflineStorage preloadData:forURL:modificationDate:expirationDate:eTag:mustRevalidate:completionHandler:]
method for determining when the data is ready to retrieve from the cache. (#188) - Fixed issues where an offline pack would stop downloading before completion. (#16230, #16240)
- When an offline pack encounters an HTTP 404 error, the
MGLOfflinePackUserInfoKeyError
user info key of theMGLOfflinePackErrorNotification
now indicates the resource that could not be downloaded. (#16240)
- Added
MGLMapView.anchorRotateOrZoomGesturesToCenterCoordinate
property that anchors zoom and rotating gestures to the map's view center coordinate. (#268) - Added the
MGLMapView.minimumPitch
andMGLMapView.maximumPitch
properties to further limit how much the user or your code can tilt the map. (#208) - Fixed a crash while quitting the application after adding an annotation to
MGLMapView
. (#252) - Fixed an issue where the user location annotation view’s heading indicator did not rotate if Compass Calibration was disabled in the device’s Location Services settings. (#247)
- Improved performance when continuously animating a tilted map. (#16287)
- Fixed a memory leak when zooming with any options enabled in the
MGLMapView.debugMask
property. (#15179)
- Fixed an issue where
MGLSymbolStyleLayer.symbolSortKey
could sort text and icons incorrectly. (#16023) - Fixed a crash when parsing GeoJSON sources. (#16106)
- Added new property
MGLMapView.panScrollingMode
, which allows you to limit the horizontal or vertical direction a user may pan on the map view. (#108) - Added the
image
expression function for converting an image name into a style image. Use this function in expressions in style JSON or with theMGL_FUNCTION()
syntax in anNSExpression
format string. Image expressions are compatible with themgl_attributed:
expression function andMGLAttributedExpression
classes for embedding icons inline in text labels. (#15877, #15937)
- Fixed a crash that could occur when
MGLShapeSource
destroys its underlying data. (#16106)
This release includes a known issue where the binary size has increased. (#63)
- Integrates
MapboxMobileEvents
as a dependency (#60). As a result, the following installation processes have changed:- CocoaPods: You now must include
use frameworks!
in your Podfile. - Carthage: Specify
github "mapbox/mapbox-events-ios" == 0.10.2
in your Cartfile. Additionally, please note that if you are using--no-use-binaries
, theMapboxMobileEvents.framework
will still be installed as a dynamic framework. - Manual installation: New Github release artifact (
mapbox-ios-sdk-5.6.0-beta.1-dynamic-with-events.zip
) contains theMapboxMobileEvents.framework
; please install this along withMapbox.framework
- CocoaPods: You now must include
- Expired resources are now fetched at a lower priority than new resources. (#15950)
- Fixed the rendering bug caused by redundant pending requests for already requested images #15864
- Enable incremental vacuum for the offline database in order to make data removal requests faster and to avoid the excessive disk space usage (creating a backup file on VACUUM call). (#15837)
- Fix ornaments' view constraints bug when devices change to bold-text mode. (#57)
- Fixed an issue where style layers backed by a shape source could flicker when transitioning between styles. (#15907, #15941)
- Fixed a crash when
MGLSymbolStyleLayer.textFontSize
is set to an expression that evaluates to0
. (#16080)
- Convert GeoJSON features to tiles for the loaded source description in a background thread and thus unblock the UI thread (#15885)
- Fixed an issue where
MGLSymbolStyleLayer.symbolSortKey
could sort text and icons incorrectly. (#16023) - Fixed an issue where style layers backed by a shape source could flicker when transitioning between styles. (#15907, #15941)
- Improved rendering performance for the styles with multiple sources (#15756)
- Added an
MGLShapeSourceOptionClusterProperties
option that allows styling individual clusters based on aggregated feature data. (#15515)
- Added
-[MGLMapSnapshotOverlay coordinateForPoint:]
and-[MGLMapSnapshotOverlay pointForCoordinate:]
to convert between context and map coordinates, mirroring those ofMGLMapSnapshot
. (#15746) - Suppress network requests for expired tiles update, if these tiles are invisible. (#15741)
- Fixed an issue that cause the ornaments to ignore
MGLMapView.contentInset
property. (#15584) - Fixed an issue that cause
-[MGLMapView setCamera:withDuration:animationTimingFunction:edgePadding:completionHandler:]
persist the value ofedgePadding
. (#15584) - Added
MGLMapView.automaticallyAdjustsContentInset
property that indicates if wether the map view should automatically adjust its content insets. (#15584) - Fixed an issue that caused
MGLScaleBar
to have an incorrect size when resizing or rotating. (#15703) - Fixed crash at launch seen on iOS 9 simulator. (#15771)
- Coalesce requests to the client for the same missing image (#15778)
- 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)
- 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)
- Improved offline region download performance by batching certain database activities. (#15521)
- Newly loaded labels appear faster on the screen. (#15308)
- Fixed a bug where the completion block passed to
-[MGLMapView flyToCamera:completionHandler:]
(and related methods) wouldn't be called. (#15473) - Fixed a crash when
-[MGLOfflinePack invalidate]
is called 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)
- Fixed an issue where
-[MGLMapView visibleFeaturesInRect:]
and-[MGLShapeSource featuresMatchingPredicate:]
could return incorrect coordinates at zoom levels 20 and higher. (#15560)
- Fixed an issue where connecting coincident holes in a polygon could lead to a race condition. (#15660)
- Fixed an issue where the scale bar text would become illegible if iOS 13 dark mode was enabled. (#15524)
- Fixed an issue with the appearance of the compass text in iOS 13. (#15547)
This release changes how offline tile requests are billed — they are now billed on a pay-as-you-go basis and all developers are able raise the offline tile limit for their users. Offline requests were previously exempt from monthly active user (MAU) billing and increasing the offline per-user tile limit to more than 6,000 tiles required the purchase of an enterprise license. By upgrading to this release, you are opting into the changes outlined in this blog post and #15380.
- Fixed flickering on style change for the same tile set. (#15127)
- Fixed performance issues when tilting a map with custom content insets. (#15195)
- Fixed an issue where animated camera transitions zoomed in or out too dramatically. (#15281)
- Enabled variable label placement when
MGLSymbolStyleLayer.textAllowsOverlap
is set to true. (#15354) - Added the
MGLSymbolStyleLayer.textWritingModes
layout property. This property can be set toMGLTextWritingModeHorizontal
orMGLTextWritingModeVertical
. (#14932) - Fixed rendering and collision detection issues with using
MGLSymbolStyleLayer.textVariableAnchor
andMGLSymbolStyleLayer.iconTextFit
properties on the same layer. (#15367) - Fixed symbol overlap when zooming out quickly. (#15416)
- Fixed an issue where non-template images would draw as template images when used in the same style layer. (#15456)
- Fixed a bug where glyphs generated through the LocalGlyphRasterizer interface were changing fonts during some zoom changes. (#15407)
- Fixed use of objects after moving, potentially causing crashes. (#15408)
- Fixed a possible crash that could be caused by invoking the wrong layer implementation casting function. (#15398)
- Fixed a rare crash when tile download requests returned “404 Not Found” errors. (#15313)
MGLLoggingLevel
has been updated to better match core log levels. You can now useMGLLoggingConfiguration.loggingLevel
to filter logs from core. (#15120)- Fixed an issue where the scale bar could show
0 mm
instead of0
. (#15381)
- Fixed a map update bug caused by the render tiles and the render passes becoming unsynchronized. (#15092)
- Fixed a custom geometry source bug caused by using the outdated tiles after style update. (#15112)
- Fixed an issue where fill extrusion layers would be incorrectly rendered above other layers. (#15065)
- Fixed a map update bug caused by the render tiles and the render passes becoming unsynchronized. (#15092)
- Fixed a custom geometry source bug caused by using the outdated tiles after style update. (#15112)
- Fixed a crash during network access. (#15113)
- Added methods to clear the ambient cache, change the size of the ambient cache, and to delete and revalidate the database that contains the ambient cache and offline packs (#14978):
-[MGLOfflineStorage clearAmbientCacheWithCompletionHandler:]
-[MGLOfflineStorage invalidateAmbientCacheWithCompletionHandler:]
-[MGLOfflineStorage setMaximumAmbientCacheSize:withCompletionHandler:]
-[MGLOfflineStorage resetDatabaseWithCompletionHandler:]
-[MGLOfflineStorage invalidatePack:withCompletionHandler:]
- The
MGLIdeographicFontFamilyName
Info.plist key now also accepts an array of font family names, to customize font fallback behavior. It can also be set to a Boolean value ofNO
to force the SDK to typeset CJK characters in a remote font specified byMGLSymbolStyleLayer.textFontNames
. (#14862) - Hiragana and katakana are now included in the range of CJK glyphs that are rendered locally by default. (#15009)
- Fixed a map update bug caused by the render tiles and the render passes becoming unsynchronized. (#15092)
- Added the
-[MGLMapViewDelegate mapView:shouldRemoveStyleImage:]
method for optimizing style image caching. (#14769) - Fixed style change transition regression caused by delayed setting of the updated layer properties. (#15016)
- Fixed an issue where layers with fill extrusions would be incorrectly rendered above other layers. (#15065)
- Improved feature querying performance. (#14930)
- Fixed a custom geometry source bug caused by using the outdated tiles after style update (#15112)
- Fixed an issue where annotations could not be selected. (#15130)
- Fixed a bug where using the pinch gesture could result in an incorrect map center coordinate. (#15097)
- Fixed an issue where the two-finger tilt gesture would continue after lifting one finger. (#14969)
- Ideographic glyphs from Chinese, Japanese, and Korean are no longer downloaded by default as part of offline packs; they are instead rendered on-device, saving bandwidth and storage while improving performance. (#14176)
- Fixed an issue where offline regions could report the wrong number of tiles. (#14958)
- Removed previously deprecated methods and properties that had been marked
unavailable
. (#15000) - The downloaded zip file of this framework no longer contains a local podspec. (#15027)
- Added variants of several animated
MGLMapView
methods that accept completion handlers (#14381):-[MGLMapView setVisibleCoordinateBounds:edgePadding:animated:completionHandler:]
-[MGLMapView setContentInset:animated:completionHandler:]
-[MGLMapView setUserTrackingMode:animated:completionHandler:]
-[MGLMapView setTargetCoordinate:animated:completionHandler:]
-[MGLMapView showAnnotations:edgePadding:animated:completionHandler:]
-[MGLMapView selectAnnotation:animated:completionHandler:]
- Deprecated variants of the above methods without completion handlers. (#14959)
- Added
MGLMapView.compassView.compassVisibility
andMGLOrnamentVisibility
to allow configuration of compass visibility behavior. (#15055) - Fixed a crash during network access. (#15113)
- Updated "map ID" to the more accurate term "tileset ID" in documentation; updated "style's Map ID" to the more accurate term "style URL". (#15116)
- Fixed a bug in telemetry collection. (#15077)
- Fixed a bug in telemetry collection. (#15077)
- Fixed a bug in telemetry collection. (#15077)
- Fixed a bug in telemetry collection. (#15077)
- Fixed a crash when a fill pattern in a style could not be found. (#14696)
- Fixed a rendering performance regression when rendering polylines. (#14851)
- Fixed a rendering performance regression introduced in 4.11.0. (#14907)
- Fixed an issue where symbols underneath opaque fill layers could be incorrectly drawn above such layers. (#14839)
- Fixed an issue where
MGLFillExtrusionStyleLayer
vertical gradients might not be rendered. (#14808)
- The
-[MGLMapView setCamera:withDuration:animationTimingFunction:edgePadding:completionHandler:]
method now adds the current value of theMGLMapView.contentInset
property to theedgePadding
parameter. (#14813) - Setting
MGLMapView.contentInset
now moves the map’s focal point to the center of the content frame after insetting. (#14664) - Fixed an issue where
-[MGLMapView visibleFeaturesInRect:]
and-[MGLShapeSource featuresMatchingPredicate:]
omitted some features from the return value. (#14884)
This release improves how monthly active users are counted. By upgrading to this release, you are opting into the changes outlined in this blog post and #14421.
There are no breaking API changes in this release.
- Changed placement order of
MGLSymbolStyleLayer
to match the viewport-y order whenMGLSymbolStyleLayer.symbolZOrder
is set toMGLSymbolZOrderViewportY
, allowing icons to overlap but not text. (#14486) - Added
MGLSymbolStyleLayer.symbolSortKey
andMGLSymbolZOrderAuto
to allow customization of symbol z-ordering. (#14386)
- Fixed an issue where
-[MGLMapView setVisibleCoordinates:count:edgePadding:direction:duration:animationTimingFunction:completionHandler:]
interpreted a negativedirection
as due north instead of maintaining the current direction. (#14575)
- Fixed a bug where some layers weren’t rendering correctly after panning. (#14527)
- Speculatively fixed a rare background crash when receiving a memory warning. (#14383)
- Fixed a bug with jittery callout views when using sprite-based annotations. (#14445)
- Fixed an Interface Builder crash when using an
MGLMapView
in a storyboard. (#14379) - Fixed a bug that caused incorrect positioning of the attribution dialog after rotation. (#14185)
- Improved
MGLLocationManager
optional protocol properties bridging to Swift. (#14477) - Fixed a layout constraints crash on iOS 9 when a view is removed from its superview. (#14529)
- Client-side text rendering of CJK ideographs is now enabled by default. (#13988)
- Fixed an issue that caused
MGL_FUNCTION
to ignore multiple formatting parameters when passed aformat
function as parameter. (#14064) - Added
mgl_attributed:
expression operator, which concatenatesMGLAttributedExpression
objects for specifying rich text in theMGLSymbolStyleLayer.text
property. (#14094) - Fixed an issue that caused conditional expressions to crash when passed nested conditional expressions as parameters. (#14181)
- Added
-[MGLMapViewDelegate mapView:didFailToLoadImage:]
to load missing symbol icons in the style if they are not found. (#14302) - Fixed a possible crash with certain expressions containing arguments that evaluate to a dictionary containing
NSArray
orNSNumber
values. (#14352) - Fixed a bug where non-opaque
UIColor
values were ignored when assigned to a style layer color property. (#14406) - Speculatively fixed a bug where GL rendering could occur in the background. (#14439)
- Added a Galician localization. (#14095)
- Added support for building with Xcode 10.2 / iOS SDK 12.2. (#14241)
- Fixed a bug that caused offline packs created prior to v4.0.0 to be marked as
MGLOfflinePackStateInactive
. (#14188)
- Added
MGLOrnamentPosition
enum and margin properties to customize scale bar, compass, logo, and attribution position within the map view. (#13911) - Added an
MGLMapView.prefetchesTiles
property to configure lower-resolution tile prefetching behavior. (#14031) - Speculatively fixed a performance issue seen on iOS 12.2, when an
MGLMapView
is repeatedly removed and re-added in a view hierarchy. (#14264)
- Fixed a bug where setting
MGLMapView.userTrackingMode
toMGLUserTrackingModeFollowWithHeading
orMGLUserTrackingModeFollowWithCourse
would be ignored if the user’s location was not already available. (#13849) - Improved tilt gesture performance. (#13902)
- Fixed a bug where
layoutSubviews
was always called on device rotation, regardless of the application's or top-most view controller's supported orientations. (#13900) - Added
MGLNetworkConfiguration
class to customize the SDK'sNSURLSessionConfiguration
object. (#13886)
- 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
- 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)
- Added a Czech localization. (#13782)
- 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)
- Reverts the ability for
MGLMapView
,MGLShapeOfflineRegion
, andMGLTilePyramidOfflineRegion
to use version 11 of the Mapbox Streets style. (#13650) - Reverts the ability for convenience methods on
MGLStyle
such asMGLStyle.lightStyleURL
, to use version 11 of the Mapbox Streets style. (#13650)
- Added the
Mapbox-iOS-SDK-stripped
build flavor, featuring fewer debug symbols. Regular framework binaries are no longer stripped of debug symbols and theMapbox-iOS-SDK-symbols
build has been retired. (#13504) - This SDK’s dynamic framework now has a bundle identifier of
com.mapbox.Mapbox
. (#12857) MGLMapView
,MGLShapeOfflineRegion
, andMGLTilePyramidOfflineRegion
now default to version 11 of the Mapbox Streets style. Similarly, several class properties ofMGLStyle
, such asMGLStyle.lightStyleURL
, have been updated to return URLs to new versions of their respective styles. (#13585)
- Fixed an issue where the
{prefix}
token in tile URL templates was evaluated incorrectly when requesting a source’s tiles. (#13429) - Added an
-[MGLStyle removeSource:error:]
method that returns a descriptive error if the style fails to remove the source, whereas-[MGLStyle removeSource:]
fails silently. (#13399) - Added the
MGLFillExtrusionStyleLayer.fillExtrusionHasVerticalGradient
property. (#13463) - Added support for setting
MGLCollisionBehaviorPre4_0
inNSUserDefaults
. (#13426) -[MGLStyle localizeLabelsIntoLocale:]
and-[NSExpression(MGLAdditions) mgl_expressionLocalizedIntoLocale:]
can automatically localize styles that use version 8 of the Mapbox Streets source. (#13481)- Fixed symbol flickering during instantaneous transitions. (#13535)
- Fixed a crash when specifying
MGLShapeSourceOptionLineDistanceMetrics
when creating anMGLShapeSource
. (#13543)
MGLMapSnapshotter
now respects theMGLIdeographicFontFamilyName
key in Info.plist, which reduces bandwidth consumption when snapshotting regions that contain Chinese or Japanese characters. (#13427)- Fixed a sporadic crash when using
MGLMapSnapshotter
. (#13300)
- Modified the behavior of the map view so that programmatic camera transitions can no longer be interrupted by user interaction when
MGLMapView.zoomEnabled
,MGLMapView.rotateEnabled
,MGLMapView.scrollEnabled
, andMGLMapView.pitchEnabled
are set to false. (#13362) - Renamed
-[MGLOfflineStorage putResourceWithUrl:data:modified:expires:etag:mustRevalidate:]
to-[MGLOfflineStorage preloadData:forURL:modificationDate:expirationDate:eTag:mustRevalidate:]
. (#13318) - Points of interest have clearer, localized VoiceOver hints in styles that use version 8 of the Mapbox Streets source. (#13525)
- Added
MGLLoggingConfiguration
andMGLLoggingBlockHandler
that handle error and fault events produced by the SDK. (#13235) - Fixed random crashes during app termination. (#13367)
MGLSymbolStyleLayer.text
can now be set to rich text with varying fonts and text sizes. (#12624)- Fixed a crash when using the
MGL_LET
,MGL_MATCH
,MGL_IF
, orMGL_FUNCTION
functions without a colon inside anNSExpression
orNSPredicate
format string. (#13189) - Fixed a crash setting the
MGLLineStyleLayer.lineGradient
property to an expression containing the$lineProgress
variable. Added anNSExpression.lineProgressVariableExpression
class property that returns an expression for the$lineProgress
variable. (#13192) - Feature querying can now return point features represented by icons that have both the
MGLSymbolStyleLayer.iconRotation
andMGLSymbolStyleLayer.iconOffset
properties applied. (#13105) - Fixed an issue where polygons crossing tile boundaries could be improperly clipped. (#13231)
- Network requests by
MGLMapView
are now prioritized over offline pack downloads. (#13019) - Added the
-[MGLOfflineStorage putResourceWithUrl:data:modified:expires:etag:mustRevalidate:]
method to allow pre-warming of the ambient cache. (#13119)
- Fixed an issue where the map view could not be panned after setting
MGLMapView.visibleCoordinateBounds
to a coordinate bounds that spanned exactly the longitudes −180° and 180°. (#13006) - Fixed an issue where snapshots had the wrong heading and pitch. (#13123)
- Fixed an issue where
-[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:]
was called with an incorrectly rotatednewCamera
when the user rotated the map. (#13123)
- Added support for 120 frames per second on capable devices. (#12979)
- Added an
MGLSymbolStyleLayer.symbolZOrder
property for forcing point features in a symbol layer to be layered in the same order that they are specified in the layer’s associated source. (#12783) - Fixed a crash when the
MGLBackgroundStyleLayer.backgroundPattern
,MGLFillExtrusionStyleLayer.fillExtrusionPattern
,MGLFillStyleLayer.fillPattern
, orMGLLineStyleLayer.linePattern
property evaluates tonil
for a particular feature. (#12896) - Fixed an issue with view annotations (including the user location annotation) and the GL map lagging relative to each other. (#12895)
- Fixed an issue where features in
MGLFillStyleLayer
andMGLLineStyleLayer
would occasionally flicker when zooming in and out. (#12982) - Fixed a crash when casting a
UIColor
to aUIColor
inside anNSExpression
. (#12864) NIL
cast to anNSNumber
now evaluates to 0 inside anNSExpression
. (#12864)- Fixed a crash when applying the
to-array
operator to an empty array inside a JSON expression. (#12864) - Added the
MGLCollisionBehaviorPre4_0
Info.plist key to restore the collision detection behavior in version 3.7 of the SDK. (#12941)
- Added
-[MGLMapViewDelegate mapViewUserLocationAnchorPoint:]
to customize the position of the user location annotation. (#12907) - Marked
MGLMapView.userLocationVerticalAlignment
as deprecated. Use-[MGLMapViewDelegate mapViewUserLocationAnchorPoint:]
instead. (#12907) - Added the
-[MGLMapView updateUserLocationAnnotationView]
and-[MGLMapView updateUserLocationAnnotationViewAnimatedWithDuration:]
methods to update the position of the user location annotation between location updates. (#12907) - Fixed an issue where the user location annotation was positioned incorrectly when the map view had a left or right content inset. (#12907)
- Added
-[MGLOfflineStorage addContentsOfFile:withCompletionHandler:]
and-[MGLOfflineStorage addContentsOfURL:withCompletionHandler:]
methods to add pregenerated offline packs to offline storage. (#12791) - Fixed an issue where some tiles were rendered incorrectly when the device was unable to connect to the Internet. (#12931)
- Added
MGLAltitudeForZoomLevel()
andMGLZoomLevelForAltitude()
methods for converting between zoom levels used byMGLMapView
and altitudes used byMGLMapCamera
. (#12986) - Deprecated the
+[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:]
method in favor of+[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:]
and+[MGLMapCamera cameraLookingAtCenterCoordinate:acrossDistance:pitch:heading:]
. (#12966) - Fixed an issue where
+[MGLMapCamera cameraLookingAtCenterCoordinate:fromEyeCoordinate:eyeAltitude:]
created a camera looking from the wrong eye coordinate. (#12966) - Added an
MGLMapCamera.viewingDistance
property based on the existingMGLMapCamera.altitude
property. (#12966) - Fixed an issue where
-[MGLMapSnapshotter startWithQueue:completionHandler:]
failed to call its completion handler in some cases. (#12355) - Fixed an issue where symbols from the events library could be duplicated when the maps SDK was used in conjunction with another Mapbox framework. (#13008)
- Fixed several crashes related to telemetry collection. (#12825)
- Fixed a crash when the network connection was offline. (#12889)
- When a symbol in an
MGLSymbolStyleLayer
has both an icon and text, both are shown or hidden together based on available space. (#12521) - Invalid values of
MGLSymbolStyleLayer.textFontNames
are treated as warnings instead of errors. (#12414) - Added an
MGLLineStyleLayer.lineGradient
property that can be used to define a gradient with which to color a line feature. (#12575) - The
MGLLineStyleLayer.linePattern
,MGLFillStyleLayer.fillPattern
, andMGLFillExtrusionStyleLayer.fillExtrusionPattern
properties can now be set to expressions that refer to feature attributes. (#12284) - Reduced the amount of memory consumed by font data after changing the style. (#12414)
-[MGLShapeSource initWithIdentifier:shape:options:]
warns about possible attribute loss when passing in anMGLShapeCollection
object. (#12625)- Added an
MGLShapeSourceOptionLineDistanceMetrics
option that enables or disables calculating line distance metrics. (#12604) - Fixed an issue where the
cubic-bezier
curve type formgl_interpolate:withCurveType:parameters:stops:
expressions was misinterpreted for some style layer properties. (#12826) - Fixed an issue that could cause symbols to fade in during pan operations instead of always showing when using
MGLSymbolStyleLayer.iconAllowsOverlap
orMGLSymbolStyleLayer.textAllowsOverlap
properties. (#12698)
- Added the
MGLShapeOfflineRegion
class for creating an offline pack that covers an arbitrary shape. (#11447) - Fixed crashes when offline storage encountered certain SQLite errors. (#12224)
- The predefined values of
MGLMapView.decelerationRate
are now typed asMGLMapViewDecelerationRate
s for improved bridging to Swift. (#12584) - Added an
-[MGLMapViewDelegate mapView:shapeAnnotationIsEnabled:]
method to specify whether an annotation is selectable. (#12352) - The
-[MGLMapView visibleFeaturesAtPoint:]
method can now return features near tile boundaries at high zoom levels. (#12570) - Fixed inconsistencies in exception naming. (#12583)
- Fixed an issue where
-[MGLMapView convertCoordinateBounds:toRectToView:]
would return an empty CGRect if the bounds crossed the antimeridian. (#12758)
- Added an
MGLMapView.preferredFramesPerSecond
property that controls the rate at which the map view is rendered. The default rate now adapts to device capabilities to provide a smoother experience. (#12501) - Token string syntax (
"{token}"
) inMGLSymbolStyleLayer
text
andiconImageName
properties is now correctly converted to the appropriateNSExpression
equivalent. (#11659) - Fixed a crash when switching between two styles having layers with the same identifier but different layer types. (#12432)
- Added a new option to
MGLSymbolPlacement
,MGLSymbolPlacementLineCenter
, that places the label relative to the center of the geometry. (#12337)
- Added an
MGLMapView.locationManager
property andMGLLocationManager
protocol for tracking user location using a custom alternative toCLLocationManager
. (#12013) - Fixed a crash that occurred when
MMELocationManager
was deallocated and the delegate was reporting updates. (#12542)
- Fixed a crash that occurred when the user started a gesture before the drift animation for a previous gesture was complete. (#12148)
- Fixed an issue where the symbols for
MGLMapPointForCoordinate
could not be found. (#12445) - Fixed an issue causing country and ocean labels to disappear after calling
-[MGLStyle localizeLabelsIntoLocale:]
when the system language is set to Simplified Chinese. (#12164) - Closed a security vulnerability introduced in 4.1.0 that would potentially allow the owner of a style to compromise apps loading that style. (#12571)
- Reduced binary size and improved performance by enabling LTO. (#12502)
- 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)
- Added an
MGLMapView.locationManager
property andMGLLocationManager
protocol for tracking user location using a custom alternative toCLLocationManager
. (#12013)
- 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)
- 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)
- Improved caching performance. (#12072)
- 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)
- Improved compatibility with Mapbox China APIs. (#12233)
- Fixed a crash in
-[MGLStyle localizeLabelsIntoLocale:]
on iOS 9.x. (#12123) - Improved compatibility with Mapbox China APIs. (#11845)
- The minimum deployment target for this SDK is now iOS 9.0. (#11776)
- Removed support for the Fabric distribution platform. (#12106)
- Improved compatibility with Mapbox China APIs. (#11845)
- Added support for aggregate expressions as input values to
MGL_MATCH
expressions. (#11866) - Fixed a crash that occurred when style JSON contained an invalid filter containing an expression. (#12065)
- Fixed a crash in
-[MGLStyle localizeLabelsIntoLocale:]
on iOS 9.x. (#12123) - Unknown tokens in URLs are now preserved, rather than replaced with an empty string. (#11787)
- Fixed an issue preventing nested key path expressions from accessing the correct feature attributes. (#11959)
- Fixed an issue where
MGLSymbolStyleLayer
flickered when straddling the antimeridian. (#11938) - Fixed an issue where certain
MGLLineStyleLayer.lineDashPattern
values produced unexpected rendering. (#12114)
- Adjusted when and how the camera transition update and finish callbacks are called, fixing recursion bugs. (#11614)
- Fixed an issue where
-[MGLMapViewDelegate mapView:tapOnCalloutForAnnotation:]
was called when the user tapped on transparent areas beneath the standard callout view. (#11939) - Improved
MGLMapView
’s performance when the scale bar is shown. (#11921) - Fixed a crash that could occur when reusing
MGLMapSnapshotter
or using multiple snapshotters at the same time. (#11831) - Fixed an issue where an empty
MGLFeature
array caused high CPU utilization. (#11985) - Improved offline download performance. (#11284)
- Fixed an issue that caused
-[MGLMapView visibleFeaturesAtPoint:]
to return an empty array when adding or removing features. (#12076) - Improved application launch performance. (#11784)
- Fixed a crash when constant expressions were used for style properties that didn't support data-driven styling. (#11960)
- Improved symbol querying. (#11571, #11742)
- Re-added support for 32-bit simulators (i386) to work around an issue in CocoaPods. (#11891)
- Added a Korean localization. (#11792)
- Deprecated
+[NSExpression featurePropertiesVariableExpression]
; use+[NSExpression featureAttributesVariableExpression]
instead. (#11748) - Added an
-[NSPredicate(MGLAdditions) predicateWithMGLJSONObject:]
method andNSPredicate.mgl_jsonExpressionObject
property. (#11810) - Added
FIRST
,LAST
, andSIZE
symbolic array subscripting support to expressions. (#11770) - Inside an expression, casting
nil
to a string turns it into the empty string instead of the string"null"
. (#11904) - Fixed an issue where certain colors were being misrepresented in
NSExpression
obtained fromMGLStyleLayer
getters. (#11725)
- Fixed an issue where selecting an onscreen annotation could move the map unintentionally. (#11731)
- Fixed an issue where annotation views could become distorted if
rotatesToMatchCamera
was enabled. (#11817) - Fixed
MGLAnnotationView.rotatesToMatchCamera
overriding other transforms that might be applied to annotation views that had this property enabled. (#11842) - Fixed an issue where an
MGLOverlay
object straddling the antimeridian had an emptyMGLOverlay.overlayBounds
value. (#11783)
- If English is the first language listed in the user’s Preferred Languages setting,
-[MGLStyle localizeLabelsIntoLocale:]
no longer prioritizes other languages over English. (#11907) - Fixed an issue where
-[MGLMapView metersPerPixelAtLatitude:]
was removed, but not marked as unavailable. (#11765) - Reduced per-frame render CPU time. (#11811)
- Improved compatibility with Mapbox China APIs. (#11845)
- Fixed a crash when removing an
MGLOfflinePack
. (#11821)
The 4.0.x series of releases will be the last to support iOS 8. The minimum iOS deployment version will increase to iOS 9.0 in a future release.
- Removed support for 32-bit simulators. (#10962)
- Added Danish, Hebrew, and European Portuguese localizations. (#10967, #11136, #11695)
- Removed methods, properties, and constants that had been deprecated as of v3.7.6. (#11205, #11681)
- Refined certain Swift interfaces by converting them from class methods to class properties. (#11674)
- Revamped the “Adding Points to a Map” guide. (#11496)
- The layout and paint properties on subclasses of
MGLStyleLayer
are now of typeNSExpression
instead ofMGLStyleValue
. A new “Predicates and Expressions” guide provides an overview of the supported operators, which include arithmetic and conditional operators. (#10726) - A style can now display a heatmap layer that visualizes a point data distribution. You can customize the appearance at runtime using the
MGLHeatmapStyleLayer
class. (#11046) - A style can now display a smooth hillshading layer and customize its appearance at runtime using the
MGLHillshadeStyleLayer
class. Hillshading is based on a rasterized digital elevation model supplied by theMGLRasterDEMSource
class. (#10642) - You can now set the
MGLVectorStyleLayer.predicate
property to a predicate that contains arithmetic and calls to built-inNSExpression
functions. You may need to cast a feature attribute key toNSString
orNSNumber
before comparing it to a string or number. (#11587) - Replaced the
MGLStyle.localizesLabels
property with an-[MGLStyle localizeLabelsIntoLocale:]
method that allows you to specify the language to localize into. Also added an-[NSExpression(MGLAdditions) mgl_expressionLocalizedIntoLocale:]
method for localizing an individual value used withMGLSymbolStyleLayer.text
. (#11651) - The
MGLSymbolStyleLayer.textFontNames
property can now depend on a feature’s attributes. (#10850) - Changes to the
MGLStyleLayer.minimumZoomLevel
andMGLStyleLayer.maximumZoomLevel
properties take effect immediately. (#11399)
- Renamed
MGLRasterSource
toMGLRasterTileSource
andMGLVectorSource
toMGLVectorTileSource
. (#11568) - Added an
MGLComputedShapeSource
class that allows applications to supply vector data to a style layer on a per-tile basis. (#9983) - Properties such as
MGLSymbolStyleLayer.iconAllowsOverlap
andMGLSymbolStyleLayer.iconIgnoresPlacement
now account for symbols in other sources. (#10436)
- Improved the reliability of collision detection between symbols near the edges of tiles, as well as between symbols when the map is tilted. It is no longer necessary to enable
MGLSymbolStyleLayer.symbolAvoidsEdges
to prevent symbols in adjacent tiles from overlapping with each other. (#10436) - Symbols can fade in and out as the map pans, rotates, or tilts. (#10436)
- Fixed an issue preventing a dynamically-added
MGLRasterStyleLayer
from drawing until the map pans. (#10270) - Fixed an issue preventing
MGLImageSource
s from drawing on the map when the map is zoomed in and tilted. (#10677) - Improved the sharpness of raster tiles on Retina displays. (#10984)
- Fixed a crash parsing a malformed style. (#11001)
- Reduced memory usage by clearing in-memory tile cache before entering background. (#11197)
- Fixed an issue where symbols with empty labels would always be hidden. (#11206)
- Fixed an issue where a tilted map could flicker while displaying rotating symbols. (#11488)
- Increased the maximum width of labels by a factor of two. (#11508)
- Changed the default value of
MGLAnnotationView.scalesWithViewingDistance
toNO
, to improve performance. If your use case involves many annotation views, consider keeping this property disabled. (#11636) - Fixed an issue preventing
MGLAnnotationImage.image
from being updated. (#10372) - Improved performance of
MGLAnnotationView
-backed annotations that havescalesWithViewingDistance
enabled. (#10951) - Fixed an issue where tapping a group of annotations may not have selected the nearest annotation. (#11438)
- The
MGLMapView.selectedAnnotations
property (backed by-[MGLMapView setSelectedAnnotations:]
) now selects annotations that are off-screen. (#9790) - The
animated
parameter to-[MGLMapView selectAnnotation:animated:]
now controls whether the annotation and its callout are brought on-screen. Ifanimated
isNO
then the annotation is selected if offscreen, but the map is not panned. Currently only point annotations are supported. Setting theMGLMapView.selectedAnnotations
property now animates. (#3249) - Fixed a crash when rapidly adding and removing annotations. (#11551, #11575)
- Marked protocol method
-[MGLCalloutView presentCalloutFromRect:inView:constrainedToView:animated:]
as unavailable. Use-[MGLCalloutView presentCalloutFromRect:inView:constrainedToRect:animated:]
instead. (#11738)
- Fixed a memory leak that occurred when creating a map snapshot. (#10585)
- The
-[MGLMapView convertRect:toCoordinateBoundsFromView:]
method and theMGLMapView.visibleCoordinateBounds
property’s getter now indicate that the coordinate bounds straddles the antimeridian by extending one side beyond ±180 degrees longitude. (#11265) - Feature querying results now account for the
MGLSymbolStyleLayer.circleStrokeWidth
property. (#10897) - Fixed an issue preventing labels from being transliterated when VoiceOver was enabled on iOS 10.x and below. (#10881)
- Labels are now transliterated from more languages when VoiceOver is enabled. (#10881)
- Long-pressing the attribution button causes the SDK’s version number to be displayed in the action sheet that appears. (#10650)
- Reduced offline download sizes for styles with symbol layers that render only icons, and no text. (#11055)
- Added haptic feedback that occurs when the user rotates the map to due north, configurable via
MGLMapView.hapticFeedbackEnabled
. (#10847) - Added
MGLMapView.showsScale
as the recommended way to show the scale bar. This property can be set directly in Interface Builder. (#11335) - Fixed an issue where the scale bar would not appear until the map had moved. (#11335)
- Fixed an issue where full-resolution tiles could fail to replace lower-resolution placeholders. (#11227)
- Fixed an issue where tilesets with bounds that cover the entire world would fail to render. (#11425)
- Fixed a memory leak in
MGLMapSnapshotter
. (#11193) - Fixed an issue where the pinch gesture could drift beyond bounds imposed by
-[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:]
. (#11423) - Improved the visibility of the heading indicator arrow. (#11337)
- Fixed an issue where requesting location services permission would trigger an unrecoverable loop. (#11229)
- Added the
MGLTileSourceOptionTileCoordinateBounds
option to create anMGLTileSource
that only supplies tiles within a specific geographic bounding box. (#11141) - Fixed an issue that caused
-[MGLMapSnapshotter pointForCoordinate:]
to return the wrong point. (#11035)
- Fixed a crash while zooming while annotations are present on the map. (#10791)
- CJK characters can be displayed in a locally installed font or a custom font bundled with the application, reducing map download times. Specify the font name using the
MGLIdeographicFontFamilyName
key in the application’s Info.plist file. (#10522) - Fixed a hang that could occur if the application makes many changes to user defaults immediately after launching. (#10803)
- Reduced the file size of the dSYM by removing the i386 architecture. Support for the i386 architecture (used by 32-bit simulators) will also be removed from the framework itself in a future release. (#10781)
- Fixed an issue where removing a
MGLOpenGLStyleLayer
from a map might result in a crash. (#10765) - Added documentation for usage of coordinate bounds that cross the anti-meridian. (#9804)
- Removed duplicated variables in
MGLMapSnapshotter
. (#10702)
- Renamed this SDK from Mapbox iOS SDK to Mapbox Maps SDK for iOS. (#10610)
- Fixed incorrect hit targets for
MGLAnnotationImage
-backed annotations that caused-[MGLMapViewDelegate mapView:didSelectAnnotation:]
to be called unnecessarily. (#10538)
- Fixed an issue that caused
MGLMapView.minimumZoomLevel
to not be set. (#10596)
- 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)
- 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.
- 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)
- 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)
- 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)
- Fixed an issue where stale (but still valid) map data could be ignored in offline mode. (#10012)
- Added the option to display an always-on heading indicator with the default user location annotation, controlled via the
MGLMapView.showsUserHeadingIndicator
property. (#9886) - Fixed an issue where user heading tracking mode would update too frequently. (#9845)
- Added support for iOS 11 location usage descriptions. (#9869)
- Fixed an issue where
MGLUserLocation.location
did not follow its documented initialization behavior. This property will now properly returnnil
until the user’s location has been determined. (#9639) MGLMapView
’sminimumZoomLevel
andmaximumZoomLevel
properties are now available in Interface Builder’s Attributes inspector. (#9729)- Deprecated
+[MGLStyle trafficDayStyleURL]
and+[MGLStyle trafficNightStyleURL]
with no replacement method. To use the Traffic Day and Traffic Night styles going forward, we recommend that you use the underlying URL. (#9918) - Fixed a crash that sometimes occurred when a map view's view controller was deallocated. (#9995)
- Added an
MGLStyle.localizesLabels
property, off by default, that localizes any Mapbox Streets–sourced symbol layer into the user’s preferred language. (#9582) - Added an additional camera method to MGLMapView that accepts an edge padding parameter. (#9651)
- Fixed an issue with the scaling of the user location annotation’s horizontal accuracy indicator. (#9721)
- Fixed an issue that caused
-[MGLShapeSource featuresMatchingPredicate:]
and-[MGLVectorSource featuresInSourceLayersWithIdentifiers:predicate:]
to always return an empty array. (#9784)
- Reduced the size of the dynamic framework by optimizing symbol visibility. (#7604)
- Fixed an issue where the attribution button would have its custom tint color reset when the map view received a tint color change notification, such as when an alert controller was presented. (#9598)
- Improved the behavior of zoom gestures when the map reaches the minimum zoom limit. (#9626)
- Fixed an issue where tilt gesture was triggered with two fingers aligned vertically and panning down. (#9571)
- Bitcode symbol maps (.bcsymbolmap files) are now included with the dynamic framework. (#9613)
- Xcode 8.0 or higher is now recommended for using this SDK. (#8775)
- Fixed an issue in the static framework where localizations would never load. (#9074)
- Updated MGLMapView’s logo view to display the new Mapbox logo. (#8771, #8773)
- Added a Hungarian localization. (#9347)
- Added support for 3D extrusion of buildings and other polygonal features via the
MGLFillExtrusionStyleLayer
class and thefill-extrusion
layer type in style JSON. (#8431) - MGLMapView and MGLTilePyramidOfflineRegion now default to version 10 of the Mapbox Streets style. Similarly, several style URL class methods of MGLStyle return URLs to version 10 styles. Unversioned variations of these methods are no longer deprecated.
MGLStyleDefaultVersion
should no longer be used with any style other than Streets. (#6301) - Added class methods to MGLStyle that correspond to the new Traffic Day and Traffic Night styles. (#6301)
- MGLSymbolStyleLayer’s
iconImageName
,iconScale
,textFontSize
,textOffset
, andtextRotation
properties can now be set to a source or composite function. (#8544, #8590, #8592, #8593) - Fixed an issue where setting the
MGLVectorStyleLayer.predicate
property failed to take effect if the relevant source was not in use by a visible layer at the time. (#8653) - Fixed an issue preventing programmatically added style layers from appearing in already cached tiles. (#8954)
- Fixed an issue causing a composite function’s highest zoom level stop to be misinterpreted. (#8613, #8790)
- Fixed an issue where re-adding a layer that had been previously removed from a style would reset its paint properties. Moved initializers for
MGLTileSource
,MGLStyleLayer
, andMGLForegroundStyleLayer
to their concrete subclasses; because these classes were already intended for initialization only via concrete subclasses, this should have no developer impact. (#8626) - Fixed a crash that occurred when removing a source that was still being used by one or more style layers. Since this is a programming error, a warning is logged to the console instead. (#9129)
- Feature querying results now account for any changes to a feature’s size caused by a source or composite style function. (#8665)
- Fixed the behavior of composite functions that specify fractional zoom level stops. (#9289)
- Letter spacing is now disabled in Arabic text so that ligatures are drawn correctly. (#9062)
- Improved the performance of styles using source and composite style functions. (#9185, #9257)
- Added a new initializer to
MGLAnnotationView
so that it is possible to create a new instance with an associated annotation object. (#9029) - Added a new
rotatesToMatchCamera
property toMGLAnnotationView
that, when set to true, causes the annotation view to rotate along with the map's rotation angle giving the appearance that the annoation view is pinned to the map. (#9147) - Fixed an issue causing a view-backed annotation to disappear immediately instead of animating when the annotation’s
coordinate
property is set to a value outside the current viewport. (#8565) - Fixed an issue in which
MGLMapView
overrode the tint colors of its annotation views. (#8789) - Fixed an issue causing annotation views to persist in the map’s annotation container view even after their associated annotations were removed. (#9025)
- The
MGLPolyline.coordinate
andMGLPolygon.coordinate
properties now return the midpoint and centroid, respectively, instead of the first coordinate. (#8713)
- Added a scale bar to
MGLMapView
that indicates the scale of the map. (#7631) - Fixed an issue causing the map to go blank during a flight animation that travels a very short distance. (#9199)
- Fixed an issue where gesture recognizers associated with map view interactivity were not disabled when their related interactions were disabled. (#8304)
- Fixed an issue preventing the Mapbox Telemetry confirmation dialog from appearing when opened from within a map view in a modal view controller. (#9027)
- Corrected the size of MGLMapView’s compass. (#9060)
- The Improve This Map button in the attribution action sheet now leads to a feedback tool that matches MGLMapView’s rotation and pitch.
-[MGLAttributionInfo feedbackURLAtCenterCoordinate:zoomLevel:]
no longer respects the feedback URL specified in TileJSON. (#9078) -[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:]
can now block any panning caused by a pinch gesture. (#9344)- If the user taps on the map while it is flying to the user’s location, the user dot no longer appears in the incorrect location. (#7916)
- Improved the responsiveness of the tilt gesture by reducing the initial recognition delay. (#9386)
- Fixed a crash that occurred when accessing the
MGLMultiPolygon.coordinate
property. (#8713) - Fixed a crash or console spew when MGLMapView is initialized with a frame smaller than 64 points wide by 64 points tall. (#8562)
- Fixed an issue that caused the compass and scale bar to underlap navigation and tab bars. (#7716)
- The error passed into
-[MGLMapViewDelegate mapViewDidFailLoadingMap:withError:]
now includes a more specific description and failure reason. (#8418) - Improved CPU and battery performance while animating a tilted map’s camera in an area with many labels. (#9031)
- Fixed an issue rendering polylines that contain duplicate vertices. (#8808)
- Added struct boxing to
MGLCoordinateSpan
,MGLCoordinateBounds
,MGLOfflinePackProgress
, andMGLTransition
. (#9343)
- Fixed an issue that caused view backed annotations to become detached from the map view during pan gestures combined with animations of annotation view size or when the annotation view had no size but contained subviews with a non-zero size. (#8926)
- Fixed an issue that prevented the attribution
UIAlertController
from showing in modal hierarchies. (#8837)
- Fixed an issue that caused a crash when the user location annotation was presenting a callout view and the map was moved. (#8686)
- This release was built with Xcode 8.3.1, which fixed a significant bitcode issue introduced in Xcode 8.3 that caused Mapbox iOS SDK 3.5.1 to be 2× larger than 3.5.0.
- Fixed an issue that caused the return type of a map view delegate method to bridge incorrectly to applications written in Swift. (#8541)
- Fixed a crash that could occur when calling
-[MGLShapeSource featuresMatchingPredicate:]
or-[MGLVectorSource featuresInSourceLayersWithIdentifiers:predicate:]
. (#8553) - Fixed a crash that could occur after adding view-backed annotations to the map. (#8513)
- Renamed the “Data-Driven Styling” guide to “Using Style Functions at Runtime” and clarified the meaning of data-driven styling in the guide’s discussion of runtime style functions. (#8627)
- The minimum deployment target for this SDK is now iOS 8. (#8129)
- Added support for the Carthage dependency manager. See our website for setup instructions. (#8257)
- While running your application in the iOS Simulator, you will receive a notice in the console if a newer version of this SDK is available. (#8282)
- Added support for right-to-left text and Arabic ligatures in labels. (#6984, #7123)
- Improved the line wrapping behavior of point-placed labels, especially labels written in Chinese and Japanese. (#6828, #7446)
- CJK characters now remain upright in vertically oriented labels that have line placement, such as road labels. (#7114)
- Added Catalan, Chinese (Simplified and Traditional), Dutch, Finnish, French, German, Japanese, Lithuanian, Polish, Portuguese (Brazilian), Russian, Spanish, Swedish, Ukrainian, and Vietnamese localizations. (#7316, #7899, #7999, #8113, #8256)
- Added support for data-driven styling in the form of source and composite style functions.
MGLStyleFunction
is now an abstract class, withMGLCameraStyleFunction
providing the behavior ofMGLStyleFunction
in previous releases. NewMGLStyleFunction
subclasses allow you to vary a style attribute by the values of attributes of features in the source. (#7596) - Added
circleStrokeColor
,circleStrokeWidth
, andcircleStrokeOpacity
properties to MGLCircleStyleLayer and support for corresponding properties in style JSON files. (#7356) - Point-placed labels in symbol style layers are now placed at more optimal locations within polygons. (#7465)
- Fixed flickering that occurred when manipulating a style layer. (#7616)
- Symbol style layers can now render point collections (known as multipoints in GeoJSON). (#7445)
- Added a
transition
property to MGLStyle to customize the timing of changes to style layers. (#7711) - Added properties to MGLStyleLayer subclasses to customize the timing of transitions between values of individual attributes. (#8225)
- Fixed an issue causing lines and text labels toward the top of the map view to appear blurry when the map is tilted. (#7444)
- Fixed incorrect interpolation of style functions in Boolean-typed style attributes. (#7526)
- Removed support for the
ref
property in layers in style JSON files. (#7586) - Fixed an issue that collapsed consecutive newlines within text labels. (#7446)
- Fixed artifacts when drawing particularly acute line joins. (#7786)
- Fixed an issue in which a vector style layer predicate involving the
$id
key path would exclude all features from the layer. (#7989, #7971) - Fixed an issue causing vector style layer predicates to be evaluated as if each feature had a
$type
attribute of 1, 2, or 3. The$type
key path can now be compared toPoint
,LineString
, orPolygon
, as described in the documentation. (#7971) - When setting an
MGLShapeSource
’s shape to anMGLFeature
instance, anyUIColor
attribute value is now converted to the equivalent CSS string representation for use withMGLInterpolationModeIdentity
in style functions. (#8025) - An exception is no longer thrown if layers or sources are removed from a style before they are added. (#7962)
- Renamed MGLStyleConstantValue to MGLConstantStyleValue. For compatibility with previous releases, MGLStyleConstantValue is now an alias of MGLConstantStyleValue. (#8090)
- Fixed a crash that could occur when switching styles after adding an MGLSource to the style. (#8298)
- Added a method to MGLMapViewDelegate,
-mapView:shouldChangeFromCamera:toCamera:
, that you can implement to restrict which parts the user can navigate to using gestures. (#5584) - Annotations are no longer deselected when the map is panned or zoomed, even if the annotation moves out of the visible bounds. (#8022)
- Changing the coordinates of a point annotation no longer deselects the annotation. (#8269)
- Fixed an issue that could cause a crash when point annotations were added and removed while simultaneously querying source features. (#8374)
- Fixed an issue preventing MGLMapView from adding a polyline annotation with the same coordinates as a polygon annotation. (#8355)
- Fixed an issue where translucent, non-view-backed point annotations along tile boundaries would be drawn darker than expected. (#6832)
- Double-tap and two-finger tap gestures now zoom to the nearest integer zoom level. (#8027)
- The
MGLAnnotationView.annotation
property is now read-write. (#8139) - Enabled the one-finger zoom gesture on iPad. To execute this gesture, tap twice; on second tap, hold your finger on the map and pan up to zoom in, or down to zoom out. (#8379)
- Offline pack notifications are now posted by
MGLOfflinePack
instances instead of the sharedMGLOfflineStorage
object. For backwards compatibility, theuserInfo
dictionary still indicates the pack’s state and progress. (#7952) - Fixed a memory leak in MGLMapView. (#7956)
- Fixed an issue that could prevent a cached style from appearing while the device is offline. (#7770)
- Fixed an issue that could prevent a style from loading when reestablishing a network connection. (#7902)
MGLOfflineStorage
instances now support a delegate conforming toMGLOfflineStorageDelegate
, which allows altering URLs before they are requested from the Internet. (#8084)
- Fixed an issue that, among other things, caused various islands to disappear at certain zoom levels. (#7621)
- Added a method to MGLMapView that allows you to specify a predicate when querying for visible features. (#8256)
- Fixed flickering that occurred when panning past the antimeridian. (#7574)
- Fixed an issue that sometimes caused crashes when the SDK interacted with the file system in the background. (#8125)
- Added a
MGLDistanceFormatter
class for formatting geographic distances. (#7888) - Fixed an issue that was causing the system location indicator to stay on in background after telemetry was disabled. (#7833)
- Added support for predicates in rendered feature querying 8256
- Added a nightly build of the dynamic framework. (#8337)
This is the final scheduled version of the Mapbox iOS SDK that supports iOS 7. (#8129)
- A programmatic change to an MGLMapView’s camera no longer resets the user tracking mode. (#7856)
- Improved the performance of trivial camera animations. (#7125)
- Added a guide detailing the built-in gesture recognizers and various ways to configure them. (#7937)
- Fixed a build error in the static framework flavor of this SDK caused by a missing header. (#7844)
- Fixed an issue causing MGLMapView’s
camera
’sheading
to be set to a negative value, indicating an undefined heading, when the map view faces northwest. The heading is now wrapped to between zero and 360 degrees, for consistency with MGLMapView’sdirection
property. (#7724) - Fixed an issue where MGLMapView could initially flash black before loading. (#7859)
- Deprecated the style class methods in MGLStyle. (#7785)
- Xcode 7.3 or above is required for using this SDK. (#6059)
- Clarified that the
-ObjC
linker flag is required for linking against the static framework distribution of this SDK. (#6213) - The API reference has a sharper look. (#7422)
- Added documentation for the Info.plist keys used by this SDK. (#6833)
- 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) - When creating an MGLShapeSource, you can now specify options for clustering point features within the shape source. Similarly, GeoJSON sources specified by the stylesheet at design time can specify the
cluster
,clusterMaxZoom
, andclusterRadius
attributes. (#5724) - Added quadkey support and limited WMS support in raster tile URL templates. (#5628)
- When creating an MGLTileSource, you can now specify that the tile URLs use TMS coordinates by setting
MGLTileSourceOptionTileCoordinateSystem
toMGLTileCoordinateSystemTMS
. TileJSON files can specify"scheme": "tms"
. (#2270) - Fixed an issue causing abstract MGLMultiPointFeature objects to be returned in feature query results. Now concrete MGLPointCollectionFeature objects are returned. MGLMultiPointFeature is now an alias of MGLPointCollectionFeature. (#6742)
- Fixed rendering artifacts and missing glyphs that occurred after viewing a large number of CJK characters on the map. (#5908)
-[MGLMapView resetPosition]
now resets to the current style’s default center coordinates, zoom level, direction, and pitch, if specified. (#6127)- Fixed an issue where feature querying sometimes failed to return the expected features when the map was tilted. (#6773)
- MGLFeature’s
attributes
andidentifier
properties are now writable. (#6728) - The action sheet that appears when tapping the information button in the bottom-right corner now lists the correct attribution for the current style. (#5999)
- Added support for MGLSymbolStyleLayer’s
textPitchAlignment
property and the corresponding style JSON property for improved street label legibility on a tilted map. (#5288) - Added support for MGLSymbolStyleLayer’s
iconTextFit
andiconTextFitPadding
properties and the corresponding style JSON properties, allowing the background of a shield to automatically resize to fit the shield’s text. (#5334) - Added support for MGLSymbolStyleLayer’s
circlePitchScale
property and the corresponding style JSON property, 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) - 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 crashes that could occur when loading a malformed stylesheet. (#5736)
- 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)
- Improved style parsing performance. (#6170)
- Improved feature querying performance. (#6514)
- Fixed an issue where shapes that cannot currently be visually represented as annotations were still shown on the map as point annotations. (#6764)
- The user dot now animates between user locations when user tracking is disabled. (#6215)
- To customize the appearance of the user location annotation, subclass the newly added MGLUserLocationAnnotationView class and implement
-[MGLMapViewDelegate mapView:viewForAnnotation:]
. (#5882) -[MGLMapView viewForAnnotation:]
now returns the user location annotation view when given the user location annotation. (#6957)- Fixed an issue causing the user dot’s accuracy ring to wobble while zooming in and out. (#6019)
- Heading accuracy indicator sizing has been changed to appear more precise. (#6120)
- Fixed an issue that caused the map to not update to reflect the centerOffset when the user location was tracked. (#6216)
- Added new methods to MGLMultiPoint for changing the vertices along a polyline annotation or the exterior of a polygon annotation. (#6565)
- Added new APIs to MGLMapView to query for visible annotations. Combined with
-[MGLMapView viewForAnnotation:]
, these APIs can be used to access all visible annotation views. (#6061) - Shape, feature, and annotation classes now conform to NSSecureCoding. (#6559)
- Fixed an issue causing offscreen annotation views to be updated even when they were in the reuse queue. (#5987)
- Fixed an issue preventing MGLAnnotationView from animating when its coordinate changes. (#6215)
- Fixed an issue causing the wrong annotation view to be selected when tapping an annotation view with a center offset applied. (#5931)
- Fixed an issue that assigned annotation views to polyline and polygon annotations. (#5770)
- Fixed an issue causing the callout view to be dismissed when panning around. (#6676)
- 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)
- To make an MGLPolyline or MGLPolygon span the antimeridian, specify coordinates with longitudes greater than 180° or less than −180°. (#6088)
- Various method arguments that are represented as C arrays of
CLLocationCoordinate2D
instances have been markedconst
to streamline bridging to Swift. (#7215) - Fixed an issue that caused an annotation view to disappear if it isn’t created using the annotation view reuse queue. (#6485)
- Fixed an issue that could reset user-added transformations on annotation views. (#6166)
- Improved the performance of relocating a non-view-backed point annotation by changing its
coordinate
property. (#5385) - Fixed an issue that caused an assertion failure if a
MGLShapeCollection
(a GeoJSON GeometryCollection) was created with an empty array of shapes. (#7632) - Improved the precision of annotations at zoom levels greater than 18. (#5517)
- Fixed an issue preventing an MGLMapView from loading tiles while an offline pack is downloading. (#6446)
- 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)
- 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)
- Added support for an
MGLMapboxAPIBaseURL
key in an app'sInfo.plist
in order to customize the base URL used for retrieving map data, styles, and other resources. (#6709) - Query parameters are no longer stripped from mapbox: URLs used as resource URLs. (#6182, #6432)
- Database errors are now logged to the console. (#6291)
- Raster tiles such as those from Mapbox Satellite are now cached, eliminating flashing while panning back and forth. (#7091)
- Improved the performance of symbol style layers. (#7025)
- As the user zooms in, tiles from lower zoom levels are scaled up until tiles for higher zoom levels are loaded. (#5143)
- Notification names and user info keys are now string enumeration values for ease of use in Swift. (#6794)
- MGLMapDebugOverdrawVisualizationMask no longer has any effect in Release builds of the SDK. This debug mask has been disabled for performance reasons. (#5555)
- Fixed a typo in the documentation for the MGLCompassDirectionFormatter class. (#5879)
- The UITapGestureRecognizer on MGLMapView that is used for selecting annotations now fails if a tap does not select an annotation. (#7246)
- Fixed issues related to the visibility of sources in viewports less than 512 pixels wide or tall. (#7438)
- This version is the same as 3.3.6 but it is built with Xcode 8 that produces a smaller binary. Developers using this version in Swift applications built with Xcode 7.3.1 should use the unstripped,
*-symbols
framework.
- Fixed a crash that occurred during low-memory situations when multiple instances of MGLMapView were in the view hierarchy. The speculative fix in v3.3.5 has been reverted. (#6972)
- Speculatively fixed an OpenGL rendering crash. (#6844)
- Fixed an issue with symbols not being properly stripped from the dynamic framework. The dSYM file included with the standard dynamic framework in previous releases (e.g.,
mapbox-ios-sdk-3.3.4-dynamic.zip
or theMapbox-iOS-SDK
pod) could not be used to symbolicate crashes. (#6531) - Simulator architecture slices are included in the included dSYM file, allowing you to symbolicate crashes that occur in the Simulator. (#5740)
- Fixed a crash that sometimes occurred when initializing an MGLMapView. (#5932)
- Fixed an issue that caused the user dot to be selected when tapping an annotation that lies within the user dot’s accuracy circle. First attempt was #5816 in v3.3.2, which excluded the pulsing halo but not the accuracy circle. (#5894)
- Fixed an issue where the style zoom levels were not respected when deciding when to render a layer. (#5811)
- Speculatively fixed a crash that occurred when initializing an MGLMapView on iOS 7.x. (#5791)
- View-backed annotations no longer prevent the user from starting to pan the map. (#5813)
- Fixed an issue that caused the user dot to be selected when tapping an annotation that lies within the user dot’s accuracy circle. (#5816)
- 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)
- 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)
- Fixed an issue preventing MGLMapView from changing its viewport when a single annotation was passed into
-[MGLMapView showAnnotations:animated:]
. (#5693) - Fixed an issue causing polyline and polygon annotations to disappear when the zoom level is one less than the maximum zoom level. (#5418)
- Fixed a crash that occurred when a style or other resource URL has a query string. (#5554)
- If you subclass MGLAnnotationView, your implementation of
-setSelected:animated:
is now called with the correct value in theanimated
parameter, making it possible to animate a deselection. (#5677) - The compass, Mapbox logo, and attribution button now accommodate the containing map view’s content insets. If your interface elements partially overlap the map view but do not affect the top and bottom layout guides, set the
automaticallyAdjustsScrollViewInsets
property toNO
and set thecontentInset
property to a suitable value. (#5671) - Added a property to MGLOfflineStorage,
countOfBytesCompleted
, that indicates the disk space occupied by all cached and offline resources. (#5585)
- 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)
- 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)
- Rendering now occurs on the main thread, fixing a hang when calling
-[MGLMapView styleURL]
before the map view has fully loaded or while the application is in the background. (#2909) - Added a
-reloadStyle:
action to MGLMapView to force a reload of the current style. (#4728) - A more specific user agent string is now sent with style and tile requests. (#4012)
- Added a new option to
MGLMapDebugMaskOptions
,MGLMapDebugOverdrawVisualizationMask
, that highlights overlapping drawing operations instead of the usual rendered output. (#5403)
- The compass, user dot, and visible annotations are now accessible to VoiceOver users. (#1496)
- Added a method to MGLMapView,
-anchorPointForGesture:
, that you can override to anchor gestures at a point other than the user location. (#5302) - Added a property to MGLMapView,
decelerationRate
, that allows you to speed up or slow down the drift animation at the end of a user gesture. You can also use this property to disable the drift animation entirely. (#5504) - Improved responsiveness when zooming in then immediately panning around. (#4595)
- Added a new method,
-[MGLMapView cameraThatFitsCoordinateBounds:]
, to get a camera that you can pass into-setCamera:
that fits the given coordinate bounds. (#4790)
- MGLPointAnnotation and custom MGLAnnotation implementations (but not MGLMultiPoint) can be backed by an MGLAnnotationView instead of an MGLAnnotationImage. MGLAnnotationView is a subclass of UIView, so you can use Core Animation and other familiar technologies with it. To associate an MGLAnnotation with an MGLAnnotationView, implement
-mapView:viewForAnnotation:
in your MGLMapViewDelegate class. (#4801) - An MGLAnnotation can be relocated by changing its
coordinate
property in a KVO-compliant way. An MGLMultiPoint cannot be relocated. (#3835) - Setting the
image
property of an MGLAnnotationImage tonil
resets it to the default red pin image and reclaims resources that can be used to customize additional annotations. (#3835) - An MGLPolygon can now have interior polygons, representing holes knocked out of the overall shape. (#5110)
- The user dot now moves smoothly between user location updates while user location tracking is disabled. (#1582)
- Fixed an issue preventing KVO change notifications from being generated on MGLMapView’s
userTrackingMode
key path when-setUserTrackingMode:animated:
is called. (#4724) - Fixed a crash setting MGLMapView’s
userLocationVerticalAlignment
property before a user location update has occurred. (#5278) - Mapbox Telemetry is automatically disabled while the host application is running in the iOS Simulator. (#4726)
MGLOfflinePackProgress
now indicates how many tiles have been downloaded and how much space they take up. (#4874)- Fixed an issue where the tile cache could be included in iCloud backups on the first launch. (#5124, #5601)
- Suppressed “Unable to make space for entry” console spew. (#4708)
- Deprecated
-[MGLMapView emptyMemoryCache]
. (#4725)
- Improved the design of the generated API documentation. (#5306)
- Applications linking against the SDK static framework no longer need to add
-ObjC
to the Other Linker Flags (OTHER_LDFLAGS
) build setting. If you previously added this flag solely for this SDK, removing the flag may potentially reduce the overall size of your application. (#4641) - Removed the
armv7s
slice from the SDK to reduce its size. iPhone 5 and iPhone 5c automatically use thearmv7
slice instead. (#4641) - The SDK is now localizable. No localizations are currently provided, other than English, but if you need a particular localization, you can install the SDK manually and drop a .lproj folder into the framework. (#4783)
- Removed unused SVG files from the SDK’s resource bundle. (#4641)
- Added category methods on NSValue for converting to and from the structure types defined in MGLGeometry.h. (#4802)
- Added NSFormatter subclasses for converting geographic coordinates and directions into display strings. (#4802)
- Added
MGLCoordinateInCoordinateBounds()
, a function that tests whether or not a coordinate is in a given bounds. (#5053)
- Fixed an issue preventing
-[MGLMapViewDelegate mapViewDidFinishLoadingMap:]
from being called when returning to the view controller containing the map view from another view controller. (#5164) - Declarations in the API documentation are shown in both Objective-C and Swift. (realm/jazzy#530)
- Existing MGLStyle class methods that return default style URLs have been deprecated in favor of new methods that require an explicit style version parameter. The deprecated, unversioned methods continue to return version 8 of the respective styles and will not be updated as new versions of the styles are released. (#4759)
- Deprecated
+[MGLStyle emeraldStyleURL]
with no replacement method. To use the Emerald style going forward, we recommend that you use the underlying URL. (#4759) - Added
+[MGLStyle outdoorsStyleURLWithVersion:]
for the new Outdoors style. (#4759) - The Hybrid style is now called Satellite Streets. (#4759)
- Fixed a hang that could occur if the host application attempts to set user defaults on a background queue. (#4745)
- User location heading updates now resume properly when an app becomes active again. (#4674)
- Fixed an issue causing hyperlinks in the documentation to be displayed as raw Markdown syntax when viewed in Xcode’s Quick Help popover or sidebar. (#4760)
- If you’ve previously installed the SDK as a static framework, the installation workflow has changed to address issues when submitting your application to the App Store or installing it on a device. Upon upgrading to this version of the SDK, you’ll need to add Mapbox.bundle to the Copy Bundle Resources build phase and remove Mapbox.framework from the Embed Frameworks build phase. (#4455)
- Offline packs can now be downloaded to allow users to view specific regions of the map offline. A new MGLOfflineStorage class provides APIs for managing MGLOfflinePacks. (#4221)
- Tiles and other resources are cached in the same file that holds offline resources. The combined cache file is located in a subdirectory of the user’s Application Support directory, which means iOS will not delete the file when disk space runs low. (#4377)
- Fixed an issue where the map view’s center would always be calculated as if the view occupied the entire screen. (#4504)
- The user dot no longer disappears after panning the map across the antimeridian at low zoom levels. (#4275)
- The map no longer recoils when panning quickly at low zoom levels. (#4214)
- Fixed an issue causing the map to pan the wrong way when the user pinches unevenly. (#4427)
- The maximum zoom level is capped at 21 due to rendering issues at higher zoom levels. (#4417)
- An icon laid out along a line no longer appears if it would extend past the end of the line. Some one-way arrows no longer point the wrong way. (#3839)
- Fixed warping of dashed lines near sharp corners. (#3914)
- Telemetry location gathering now occurs only when the device is in motion. (#4115)
- An account’s monthly active users metric only counts a user once a map view is displayed to that user. (#3713)
- A .dSYM bundle is included with the dynamic framework to facilitate symbolication of crash logs.
- Updated documentation to reflect the requirement that you must embed the dynamic framework in the “Embedded Binaries” section in Xcode. (#4011)
- Polygons and polylines now default to using the map view’s tint color. (#4028)
- The user dot no longer lags when panning the map. (#3683)
- The Improve This Map tool now uses the same zoom level that is currently being shown in the map view. (#4068)
- Fixed a formatting issue in the documentation for
MGLCoordinateBoundsIsEmpty()
. (#3958)
- You can once again install the static framework without manually linking several framework and library dependencies. (#4029)
- The location manager used by MGLMapView to show the user’s location is now paused when the application is sent to the background. (#4034)
- Corrected the dynamic framework’s minimum deployment target to iOS 8.0. (#3872)
- Fixed Fabric compatibility. (#3847)
- Fixed a crash that can occur when reselecting an annotation. (#3881)
- Fixed an issue preventing the Latitude inspectable from working when it is set before setting the Zoom Level inspectable in Interface Builder. (#3886)
- Fixed an issue that incorrectly expanded the tappable area of an annotation and prevented the annotation’s alignment rect insets from having any effect on the tappable area. (#3898)
- Fixed an issue preventing
-[MGLMapViewDelegate mapView:tapOnCalloutForAnnotation:]
from being called when a non-custom callout view is tapped. (#3875)
- The SDK is now distributed as a dynamic framework instead of a static library, resulting in a simpler installation workflow and significantly reduced download size. The framework contains both simulator and device content. If you install the dynamic framework manually, you’ll need to strip out the simulator content before submitting your application to the App Store due to an Xcode bug; see the installation instructions included with the framework for details. (#3183)
- Fixed an issue causing the entire MGLMapView to leak. (#3448)
MGLMapView
methods that alter the viewport now accept optional completion handlers. (#3090)- You can now modify an annotation’s image after adding the annotation to the map. (#3146)
- Tapping now selects annotations more reliably. Tapping near the top of a large annotation image now selects that annotation. An annotation image’s alignment insets influence how far away the user can tap and still select the annotation. For example, if your annotation image has a large shadow, you can keep that shadow from being tappable by excluding it from the image’s alignment rect. (#3261)
- Annotations remain visible after switching to a different style. (#3049)
- The minimum and maximum zoom levels can now be configured using the
minimumZoomLevel
andmaximumZoomLevel
properties, respectively. The map is no longer limited to zoom level 18: by default, the maximum zoom level is now 20, allowing for a more detailed map in urban areas. (#3712) - A new method on MGLMapView,
-flyToCamera:withDuration:completionHandler:
, lets you transition between viewpoints along an arc as if by aircraft. (#3171, #3301) - MGLMapCamera’s
altitude
values now match those of MKMapCamera. (#3362) - MGLMapView properties like
centerCoordinate
andcamera
now offset the center to account for any translucent top or bottom bar. As a result, when user tracking is enabled and the map view is an immediate child of a view controller, the user dot is centered in the unobscured portion of the map view. To override this offset, modify thecontentInset
property; you may also need to set the containing view controller’sautomaticallyAdjustsScrollViewInsets
property toNO
. (#3583) - In user tracking mode, the user dot stays in a fixed position within MGLMapView while the map pans smoothly. A new property,
userLocationVerticalAlignment
, determines the user dot’s fixed position. (#3589) - When the user tracking mode is set to
MGLUserTrackingModeFollowWithCourse
, an optionaltargetCoordinate
is kept within sight at all times as the user changes location. This property, in conjunction with theuserLocationVerticalAlignment
property, may be useful for displaying the user’s progress toward a waypoint. (#3680) - Heading or course tracking mode can now be enabled as soon as an MGLMapView is initialized. (#3680)
- Zooming and rotation gestures no longer disable user tracking mode. (#3589)
- User tracking mode starts out at a lower zoom level by default. (#3589)
- Fixed an issue with small map views not properly fitting annotations within bounds. (#3407)
- When the user rotates the map to within 7° of true north, the map view now snaps to true north. (#3403)
- The map view’s background can now be transparent or translucent, as long as the style’s background layer is transparent or translucent and
MGLMapView.opaque
is set toNO
. (#3096) - Documentation is now generated by jazzy instead of appledoc. ♪♫ (#3203)
- New API to provide a custom callout view to the map for annotations. (#3456)
- Made telemetry on/off setting available in-app. (#3445)
- Fixed an issue with users not being counted by Mapbox if they had disabled telemetry. (#3495)
- Fixed crash caused by MGLAnnotationImage with non-integer width or height (#2198)
- Fixed “include of non-modular header” errors in Swift projects managed by CocoaPods. (#3679)
- Avoids triggering the blue background location status bar when user has granted "when in use" permission. (#3671)
- Deprecated the
debugActive
property and-toggleDebug
method on MGLMapView in favor of a newdebugMask
property that exposes individual style debugging options. (#3742)
- Fixed CoreTelephony.framework crash. (#3170)
- Fixed an issue preventing the compass from responding to taps after the compass is moved programmatically. (#3117)
- CocoaPods is now distributed via a (static) framework. (#3181)
- If you install this SDK via CocoaPods, CocoaPods version 0.38.0 or above is required. (#2132)
- The
styleID
property has been removed from MGLMapView. Instead, set thestyleURL
property to an NSURL in the formmapbox://styles/STYLE_ID
. If you previously set the style ID in Interface Builder’s Attributes inspector, delete thestyleID
entry from the User Defined Runtime Attributes section of the Identity inspector, then set the new “Style URL” inspectable to a value in the formmapbox://styles/STYLE_ID
. (#2632) - Default styles such as Streets are no longer bundled with the SDK; instead, they are loaded at runtime from the style API on mapbox.com. As always, you can use these default styles with any valid access token, and Streets continues to be
MGLMapView
’s initial style. ThebundledStyleURLs
property onMGLMapView
has been deprecated in favor of several class methods onMGLStyle
that provide direct access to the default styles. (#2746) - The SDK now builds with Bitcode enabled. A version of libMapbox.a with Bitcode disabled is also available. (#2332, #3003)
- The style URL can be set to a local resource:
asset://local-color.json
andlocal-color.json
both resolve to a file namedlocal-color.json
in the application’s root folder. (#3087) - The double-tap-drag gesture for zooming in and out is now consistent with the Google Maps SDK. (#2153)
- A new
MGLAnnotationImage.enabled
property allows you to disable touch events on individual annotations. (#2501) - Fixed a rendering issue that caused one-way arrows along tile boundaries to point due east instead of in the direction of travel. (#2530)
- Fixed an issue that prevented zoom level–dependent style properties from updating after zooming programmatically with animation. (#2951)
- Performance and appearance improvements during annotation adds & removes. (#1688)
- Overall improved performance during renders by not rendering faster than necessary. (#1975)
- Fixed a rendering issue with styles that use the
background-pattern
property. (#2531) - Fixed a crash when reusing a single
MGLMapView
across multipleUIViewController
s. (#2969) - Fixed a crash on iPod touch and other devices or simulators without a cell carrier. (#2687)
- Eliminated flickering when opening and closing an overlay, such as an alert or action sheet. (#2309)
- Labels can now line wrap on hyphens and other punctuation. (#2598)
- A new delegate callback was added for observing taps to annotation callout views. (#2596)
-mapViewRegionIsChanging:
is now sent to the map view’s delegate during gestures. (#2700)- Improved gesture recognition while the map is tilted. (#2770)
-mapViewWillStartLoadingMap:
and-mapViewDidFinishLoadingMap:
delegate methods now work. (#2706)- Removed CoreTelephony.framework dependency. (#2581)
- Improved user location annotation responsiveness. (#2643)
- Built with Xcode 6.4 to not yet trigger Bitcode compatibility until Xcode 7 stabilizes. (#2332)
- Fixes for Xcode 7 and Bitcode. (#2238)
- A two-finger vertical swipe now tilts the map into perspective mode. (#2116)
- A new
MGLMapCamera
API allows you to transition multiple viewpoint properties, including rotation and pitch, simultaneously with an optional custom duration and timing function. (#2193) - A new user tracking mode,
MGLUserTrackingModeFollowWithCourse
, has been added for indicating the current direction of travel. (#2068) - Version 8 (
v8
) of the Mapbox GL style spec is now required. If you are using a customv7
style, it needs to be upgraded using this migrator script. (#2052) - Applications built with Mapbox GL no longer crash when Location Services launches them in background mode. (#1821, #1869)
- Fixed a crash when adding annotations to an
MGLMapView
inside-viewDidLoad
. (#1874) - The user location annotation view now indicates the location reading’s accuracy and the device’s heading. (#2010)
- Eliminated linker warnings and errors when building against the iOS 9.0 SDK in Xcode 7. (#1962)
- Worked around a bug in the iOS 9.0 SDK that caused a crash on launch. (#1958)
- User location tracking no longer sends
MGLMapView
into an invalid region on iOS 9. (#1925) - Eliminated console spew in the iOS demo application that was related to Mapbox Metrics HTTP requests. (#1937)
- Implemented
-[MGLMapView showAnnotations:animated:]
. (#2050) - Fixed a crash adding a shape annotation with zero points. (#2098)
- Debug mode now displays information useful for debugging the label collision algorithm. (#1808)
- Minor style updates. (#1910)
- The CocoaPods pod now contains a
README.md
file. (#1886)
Repackaging 2.0.0-pre.1 as it contained no issues.
Repackaging 0.5.1 as the Mapbox iOS SDK 2.0.0 series.
- Added support for CocoaPods 0.38.0. (#1876)
- Support for runtime marker imagery. (#941)
- Added
Map::fitBounds()
for region-based viewport setting. (#1092) - Added a raster satellite bundled style and improved raster rendering. (#963)
- Improved round line joins for semi-transparent lines. (#1839)
- Improved map render lifecycle notifications. (#1026)
- Fixed a bug that caused annotations not to show at zoom level zero. (#1279)
- Fixed a bug with the ordering of shape layers. (#1866)
- Other bug fixes and performance improvements.
- Breaking: Headers now make use of lightweight generics, eliminating many unnecessary casts when working with annotations in Swift 2.0 in Xcode 7. (#1711)
- Breaking:
-mapView:symbolNameForAnnotation:
has been removed from theMGLMapViewDelegate
protocol. Implement-mapView:imageForAnnotation:
instead, which accepts images at runtime. (#941) - Breaking:
MGLMapView.direction
is now expressed in terms of degrees clockwise from true north, as indicated in the documentation, rather than counterclockwise. (#1789) - A Satellite style showing Mapbox Satellite imagery is now bundled with Mapbox GL. (#1845)
- Improved
UIView
tracking to the map. (#1813) - Delegate method
-[MGLMapViewDelegate mapView:didFailToLocateUserWithError:]
now works. (#1608) - It is now possible to fit the map’s viewport to a coordinate bounding box via
-[MGLMapView setVisibleCoordinateBounds:animated:]
or to a specific set of coordinates via-[MGLMapView setVisibleCoordinates:count:edgePadding:animated:]
. (#1783, #1795) - The logo and ℹ️ no longer disappear or get distorted after embedding MGLMapView in a different view, and you can now access these subviews directly via properties on MGLMapView. (#1779, #1815)
- Raster tiles now look sharper midway between two zoom levels. (#1843)
- Resetting the map rotation to north no longer also resets the user location tracking mode. (#1809)
-[MGLMapView convertPoint:toCoordinateFromView:]
now returns accurate coordinates on iPhone 6. (#1827)- Fixed an issue in which
-[MGLMapView direction]
would sometimes return 360 instead of 0. (#1829) - Build against iOS 8.4. (#1868)
- Support for polyline and polygon shape annotations. (#1655)
- Improved placement and density of labels. (#1666, blog)
- Improved z-ordering appearance of point markers. (#988)
- Fixed an issue in which certain features, such as roundabouts, were not rendered completely. (#1725)
- Many bug fixes and performance and stability improvements.
- Improved tests.
- Breaking:
MGLMapView
no longer manages Mapbox access tokens directly; an access token cannot be passed in when initializing the map view. Instead, setMGLMapboxAccessToken
to your access token in your app’sInfo.plist
file, or call+[MGLAccountManager setAccessToken:]
before initializing the map view. If you were setting the access token inside an Interface Builder inspectable, also remove it from the User Defined Runtime Attributes section of the Identity inspector. (#1553) - Breaking:
MGLAccountManager
's-setMapboxMetricsEnabledSettingShownInApp:
has been removed. If you implement a Mapbox Metrics switch inside your app, instead of inside a Settings bundle, setMGLMapboxMetricsEnabledSettingShownInApp
toYES
in theInfo.plist
file. (#1553) - Breaking:
MGLMapView
's-mapID
has been renamed to-styleID
. (#1561) - Headers have been audited for nullability, improving type safety in both Objective-C and Swift 1.2 when compiling with Xcode 6.3 or above. (#1578)
- Fixed an issue in which the map would sometimes spin 180° while rotating the map with two fingers. (#1453)
- Added a shortcut to the Mapbox Metrics switch in
MGLMapView
's action sheet that is attached to the ℹ️ button. (#1611) MGLMapView
now supports Interface Builder designables. When you add anMGLMapView
to a storyboard, it displays instructions for getting set up directly on the storyboard canvas. (#1573)- The default title for the user location annotation is now “You Are Here”. You can customize the title by setting
mapView.userAnnotation.title
. (#1559) - Internal use of the Reachability library has been cleaned up so that your app can include its own copy of Reachability. (#1718)
- Now distribute a binary stripped of debugging symbols by default with an optional, secondary symbols build. (#1650)
- Temporarily removed
IBDesignable
support on iOS.
- Initial iOS beta release.
Known issues:
- None.