Mapbox Maps: v10.0.0-beta.17
·
2086 commits
to main
since this release
Dependency requirements:
- Compatible version of MapboxCoreMaps: v10.0.0-beta.19
- Compatible version of MapboxCommon: v11.0.0
- Compatible version of Xcode: 12.4
- Compatible version of MacOS: Big Sur
Changes
Breaking changes ⚠️
-
AnnotationManagerno longer conforms toObserverand no longer has apeer. (#246) -
AnnotationSupportableMapis now internal. (#246) -
MapView
- Initializer has been changed to
public init(frame: CGRect, resourceOptions: ResourceOptions, glyphsRasterizationOptions: GlyphsRasterizationOptions = GlyphsRasterizationOptions.default, styleURI: StyleURI? = .streets). StyleURLhas been renamed toStyleURIOrnamentSupportableMapViewis not internal.
- Initializer has been changed to
-
Ornaments
LayoutPositionhas been deprecated in favor ofOrnamentPosition.LayoutVisibilityhas been depracted in favor ofOrnamentVisibility.showsLogoViewhas been renamed to_showsLogoView.showsCompassandshowsScalehave been deprecated. Visibility properties can be used to set how the Compass and Scale Bar should be shown.
-
Foundation
cancelTransitionshas been renamed tocancelAnimations.setCamera()with individual parameters has been deprecated in favor ofsetCamera(to targetCamera: CameraOptions...)which requiresCameraOptions.- The following camera convenience functions have been removed:
public func transitionCoordinateBounds(newCoordinateBounds: CoordinateBounds, animated: Bool = false)public func transitionCoordinateBounds(to newCoordinateBounds: CoordinateBounds, edgePadding: UIEdgeInsets, animated: Bool = false, completion: ((UIViewAnimatingPosition) -> Void)? = nil)public func transitionVisibleCoordinates(newCoordinates: [CLLocationCoordinate2D], edgePadding: UIEdgeInsets, animated: Bool = false)public func transitionVisibleCoordinates(to newCoordinates: [CLLocationCoordinate2D], edgePadding: UIEdgeInsets, bearing: CLLocationDirection, duration: TimeInterval, animated: Bool = false, completion: ((UIViewAnimatingPosition) -> Void)? = nil)public func resetPosition()public func resetNorth(_ animated: Bool = false)
- In
CameraAnimator,fractionCompleteis now of typeDoubleanddelayFactornow returns aDouble. MapboxLogoViewhas been renamed toLogoView.MapboxLogoSizehas been renamed toLogoSize.
-
Style
- Initializer is now marked as internal.
styleUriproperty has been renamed touri.- The
urlproperty fromStyleURLhas been removed.
-
Expressions
init(from: jsonObject)andpublic func jsonObject()have been removed.Element.ophas been renamed toElement.operator.Argument.arrayhas been renamed toArgument.numberArray.ValidExpressionArgumenthas been renamed toExpressionArgumentConvertible.
Bug fixes 🐞
- Fixes an issue that could prevent annotations from being selectable. (#246)
- Fixes an issue where some JSON layers are not be decoded correctly. (#248)
- Fixes an issue where the location puck was not animating. (#256)
Direct download
Link to download binaries (append your own Mapbox access token scoped with DOWNLOADS:READ):
https://api.mapbox.com/downloads/v2/mobile-maps-ios/releases/ios/10.0.0-beta.17/MapboxMaps.zip?access_token=<access-token>