v11.6.0
mapbox-github-ci-writer-public-1
released this
16 Aug 07:45
·
134 commits
to main
since this release
- Setting
MapViewAnnotation.allowZElevate
might cause crash.
Features ✨ and improvements 🏁
- Expose new Standard Satellite style. Add new parameters to the Standard Style. With new Standard Style API it's possible to apply color themes on the map, hide/show road labels and show/hide 3D models. With new Standard Satellite style it's possible to show satellite imagery and also apply some configurations similar to Standard Style.
- SwiftUI API is now marked as stable and recommended for production use 🎉
- You no longer need to append
import MapboxMaps
with@_spi(Experimental)
to use the SwiftUI implementation - Check out our SwiftUI User Guide for documentation on working with SwiftUI.
- You no longer need to append
- Expose experimental
ClipLayer
to remove 3D data (fill extrusions, landmarks, trees) and symbols. CustomRasterSource
API is updated, nowCustomRasterSourceOptions
accepts protocolCustomRasterSourceClient
, enabling direct rendering intoCustomRasterSource
tiles. To achieve behavior similar to previous releases one may construct instance ofCustomRasterSourceClient
as shown below:
CustomRasterSourceOptions(tileStatusChangedFunction: { tileID, status in }) // Before
CustomRasterSourceOptions(clientCallback: CustomRasterSourceClient.fromCustomRasterSourceTileStatusChangedCallback { tileID, status in }) // Now
- Introduce new
ViewAnnotation.allowZElevate
andMapViewAnnotation.allowZElevate
properties. When set to true, the annotation will be positioned on the rooftops of buildings, including both fill extrusions and models. - Deprecate
MapView.presentsWithTransaction
andMap.presentsWithTransaction
in favor ofMapView.presentationTransactionMode
andMap.presentationTransactionMode
. The new defaultPresentationTransactionMode.automatic
updates thepresentsWithTransaction
automatically when need to optimize performance. If you used theMapView.presentsWithTransaction
with View Annotations, now you can safely remove this option:
Map {
MapViewAnnotation(...)
}
.presentsWithTransaction(true) // Remove this
In case you need to preserve the old default behavior use presentationTransactionMode = .async
:
mapView.presentationTransactionMode = .async // UIKit
Map().presentationTransactionMode(.async) // SwiftUI
- MapboxMaps XCFramework structure now properly constructed for
maccatalyst
platform and code signing issues was eliminated.
Bug fixes 🐞
- Fix bug where updating MapStyle didn't update the configuration properties.
- Fix symbols with occlusion crashing on iOS simulators
- Improved
line-pattern
precision - Fixed
CustomRasterSource
rendering when camera shows anti-meridian or multiple world copies.
Dependencies
Dependency requirements:
- Compatible version of Xcode:
15.2.0