Repository navigation
v11.0.0-rc.1
Pre-release
Pre-release
·
1385 commits
to main
since this release
Changes
Breaking changes ⚠️
MapboxMap.loadStylemethods changed error type fromMapLoadingErrortoError.OverviewViewportStateOptions.coordinatesPaddingis renamed toOverviewViewportStateOptions.geometryPadding.- [SwiftUI]
Viewport.overview(geometry:bearing:pitch:coordinatesPadding:maxZoom:offset:)is renamed toViewport.overview(geometry:bearing:pitch:geometryPadding:maxZoom:offset:) - Bearing indication on user location puck is disabled by default to reduce amount map redraws.
To re-enable bearing update rendering, setmapView.location.options.puckBearingEnabledtotrue. - The default behavior of resetting the viewport to idle is changed. Previously viewport was reset to idle when the user touched the map for longer than 150 ms. Now it will happen when the user pans the map. If the desired behavior is different, you can disable the default by setting
mapView.viewport.options.transitionsToIdleUponUserInteractiontofalseand implementing any gesture that callsmapView.viewport.idle().
Features ✨ and improvements 🏁
- Refactor
MapboxMap.loadStyleto cancel previous style loads when called multiple times. - New experimental
StyleManager.load(mapStyle:transition:completion)method to loadMapStyleinMapboxMap, orSnapshotter:mapboxMap.load(mapStyle: .standard(lightPreset: .dawn, showRoadLabels: false)) { _ in print("Style is loaded") }
- Support
slotfor annotation managers and annotation groups. - [SwiftUI] Annotation groups can be created with static list of annotations. In the example below polyline annotation group displays two annotations on the same layer.
Map { PolylineAnnotationGroup { PolylineAnnotation(lineCoordinates: route.coordinates) .lineColor("blue") if let alternativeRoute { PolylineAnnotation(lineCoordinates: alternativeRoute.coordinates) .lineColor("green") } } .lineCap(.round) .slot("middle") }
- [SwiftUI] Expose
transitionsToIdleUponUserInteractionmodifier.
Bug fixes 🐞
- Fix issue where 2D puck images are not getting updates.
- [SwiftUI] Fixed issue when viewport inset with safe area is calculated incorrectly.
- Fixed issue when quick interaction didn't lead to resetting viewport to
idle.
Dependencies
- Update MapboxCommon to
24.0.0-rc.2. - Update MapboxCoreMaps to
11.0.0-rc.1:-
Changelog
- Features ✨ and improvements 🏁
- Update mapbox-common to v24.0.0-rc.1
- Bug fixes 🐞
- Fix the line label flickering issue by eliminating the anchor rounding error
- Honor model-emissive-strength for 3D location indicator
- Fix rendering of large/complex fill extrusion features
- Features ✨ and improvements 🏁
-
Dependency requirements:
- Compatible version of Xcode:
14.1.0