Mapbox Maps: v10.0.0-rc.9
·
1846 commits
to main
since this release
Dependency requirements:
- Compatible version of MapboxCoreMaps: v10.0.0-rc.9.1
- Compatible version of MapboxCommon: v19.0.0
- Compatible version of Xcode: 12.5
- Compatible version of MacOS: Catalina
Changes
Breaking changes ⚠️
BasicCameraAnimatornow keeps animators alive without the user storing the animator. (#646)- Experimental style APIs are now marked with
@_spi(Experimental)and the previously used underscore prefixes have been removed. In order to access these methods, use@_spi(Experimental)to annotate the import statement for MapboxMaps. (#680) RenderedQueryOptions.filteris now of typeExpressioninstead ofAny(#689)OfflineRegionGeometryDefinition.geometryis now of typeTurf.Geometryinstead ofMapboxCommon.Geometry(#689)- The
HTTPResponseinit methods that takeMapboxCommon.Expectedinstead ofResultare now correctly marked as refined for Swift. (#689) - The
DownloadStatusinit methods that takeMapboxCommon.Expectedinstead ofResultandNSNumber?instead ofUInt64?are not correctly marked as refined for Swift. (#689) GestureOptions.hapticFeedbackEnabledhas been removed. (#663)GestureManager.decelarationRatehas been removed andGestureOptions.decelerationRateis the single source of truth. (#662)GestureManagerno longer conforms toNSObjectand is not aUIGestureRecognizerDelegate. (#669)TapGestureHandler.initwas previously public by mistake and is now internal. (#677)- The behavior of
GestureManager.optionshas been updated to better reflect theisEnabledstate of the associated gesture recognizers. (#677) - The gesture recognizer properties of
GestureManagerare no longerOptional. (#677) GestureTypehas been redesigned so that its cases have a 1-1 relationship with the built-in gestures. (#677)GestureManager.rotationGestureRecognizerhas been removed. Rotation is now handled by.pinchGestureRecognizerin addition to its preexisting handling of panning and zooming. (#696)GestureManager.doubleTapToZoomOutGestureRecognizerhas been replaced with.doubleTouchToZoomOutGestureRecognizer. (#696)PanScrollingModehas been renamed toPanMode. (#696)GestureOptions.zoomEnabledhas been replaced by.doubleTapToZoomInEnabled,.doubleTouchToZoomOutEnabled, and.quickZoomEnabled. (#696)GestureOptions.rotateEnabledhas been removed. (#696)GestureOptions.scrollEnabledhas been renamed to.panEnabled. (#696)GestureOptions.scrollingModehas been renamed to.panMode. (#696)GestureOptions.decelerationRatehas been renamed to.panDecelerationFactor. (#696)GestureType.doubleTapToZoomOuthas been replaced with.doubleTouchToZoomOut. (#696)GestureType.rotatehas been removed. (#696)GestureTypecases have been reordered for consistency withGestureOptionsandGestureManager. (#696)
Features ✨ and improvements 🏁
- Allow users to set the map's
MapDebugOptions. (#648) - Implement 'promoteId' feature for geojson and vector sources. The feature allows to promote feature's property to a feature id, so that promoted id can be used with FeatureState API. (#660)
- Tiled 3D model layer and source (#689)
- Enable instant transitions for data driven symbol layer properties (#689)
- Implement face culling for Metal (#689)
HTTPServiceInterface.getInstance()is now publicly available. (#689)CameraState's fields are nowvars instead oflets for testing purposes, and a public, memberwise initializer has been added. (#677)PanScrollingModenow conforms toCaseIterable. (#677)GestureTypenow conforms toCaseIterable. (#677)- Pan deceleration has been reimplemented to produce a more natural deceleration effect. (#692)
- Expose new API to allow users to create a
UIImageout of the last rendered MapView state. (#693)
Bug fixes 🐞
- Fixes animations that are started within an UIKit animation context. (#684)
- Fix transition between layers with all-constant properties (#689)
- Fix rendering artifact for a line layer, when its line-gradient property is set at runtime. (#689)
- Don't draw SDF images in text-field and issue warning for it (#689)
- Fix incorrect return from
StyleManager#getStyleLayerPropertyDefaultValuefor 'text-field'. Now the default value is set to["format", "" , {}](#689) - GestureManager no longer sets itself as the delegate of all gestures in MapView when its options change. (#677)
- Fixes an issue where tapping the compass could fail to set the bearing to 0 if there was already an animation running. Tapping the compass now cancels any existing animations. (#696)
- Fixes issues with the pinch gesture when removing and re-adding one of the two required touches. (#696)
- Fixes an issue where a pan gesture would fail if it interrupted the deceleration from a previous pan gesture. (#696)
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-rc.9/MapboxMaps.zip?access_token=<access-token>