v11.6.0-beta.1
Pre-release
Pre-release
mapbox-github-ci-writer-public-1
released this
19 Jul 10:48
·
9 commits
to release/v11.6
since this release
11.6.0-beta.1 July 19, 2024
Breaking changes ⚠️
- [compose] Remove
StyleImage
constructor withBitmapImage
, userememberStyleImage
composable function to build it instead. - [compose] Move layer properties within
*Layer
composable functions to*LayerState
classes, use the convenient method*Layer(sourceState, layerId, init)
with trailing lambda for easier migration (see migration example). - [compose] Move
onClick
listener from last parameter to the second last parameter ofAnnotation
andAnnotationGroup
composable functions. - [compose] Move properties within
*Annotation
and*AnnotationGroup
composable functions to the new*AnnotationState
and*AnnotationGroupState
classes, use the convenient method*Annotation(point, onClick, init)
and*AnnotationGroup(annotations, annotationConfig, onClick, init)
with trailing lambda for easier migration (see migration example). - [compose] Replace color int and color string property types in
*Annotation
with composeColor
type. - [compose] Replace
PointAnnotation.iconImageBitmap
andPointAnnotation.iconImage
withPointAnnotationState.iconImage
withIconImage
type,IconImage
can be constructed with either a image idString
or aBitmap
, and introducedrememberIconImage
to build and remember a bitmap fromPainter
or from a drawable resource id. - [compose] Introduce
StandardStyleConfigurationState
class to hold the configurations ofMapboxStandardStyle
, and movelightPreset
config fromMapboxStandardStyle
toStandardStyleConfigurationState
; consider using overload methodMapboxStandardStyle
with trailing init lambda for easier migration. - Experimental
CustomRasterSourceOptions.Builder
now acceptsCustomRasterSourceClient
containingCustomRasterSourceTileStatusChangedCallback
instead ofCustomRasterSourceTileStatusChangedCallback
interface directly.
Features ✨ and improvements 🏁
- [compose] Promote Compose Extension to stable.
- [compose] Mark
MapState
,MapViewportState
,TerrainState
, light states and source states asStable
as they are internally backed byMutableState
. - [compose] Add more config options including
showPlaceLabels
,showRoadLabels
,showPointOfInterestLabels
,showTransitLabels
andfont
toStandardStyleConfigurationState
. - [compose] Introduce
StyleImage
constructor withImage
type, and addrememberStyleImage
composable functions to create and rememberStyleImage
. - [compose] Add extension function to
*AnnotationOptions
to handle composeColor
, use it in*AnnotationGroup
composable functions for convenience. - [compose] Add style transition parameter in
GenericStyle
,MapStyle
andMapboxStandardStyle
. - Modify
awaitCameraForCoordinates
extension function to useMapCameraManagerDelegate
as receiver type. - Modify
queryRenderedFeatures
andquerySourceFeatures
extension functions to useMapFeatureQueryDelegate
as receiver type. - Introduce asynchronous overloaded method
ViewAnnotationManager.cameraForAnnotations
better covering some corner cases. - Make use of asynchronous
MapboxMap.cameraForCoordinates
in Mapbox overlay plugin better covering some corner cases. - Mark synchronous methods
MapboxMap.cameraForCoordinates
andViewAnnotationManager.cameraForAnnotations
with@MapboxDelicateApi
. Consider using asynchronous overloaded methods instead. - Deprecate
MapboxMap.getDebug()
/MapboxMap.setDebug()
in favour ofMapView.debugOptions
taking new enhanced enumMapViewDebugOptions
as an argument. - Introduce
MapViewDebugOptions.CAMERA
andMapViewDebugOptions.PADDING
debug options to track current camera state and visualize camera paddings. - Expose experimental
ClipLayer
to remove 3D data (fill extrusions, landmarks, instanced trees) and symbols. - Enable r8 optimisations for all the Mapbox extensions and plugins in consumer proguard file, the optimisation will apply when minify is enabled in app's build settings.
- Align default displacement for Android and Google location providers.
- Enable direct rendering into
CustomRasterSource
tiles. - Introduce a new
allowZElevate
option inViewAnnotationOptions
. When set to true, the annotation will be positioned on the rooftops of buildings, including both fill extrusions and models.
Bug fixes 🐞
- [compose] Fix minZoom/maxZoom not working for layers.
- [compose] Fix
java.lang.UnsupportedOperationException
when settingtextWritingMode
andtextVariableAnchor
. - Fix compass view ignoring
enabled
option when it is set inupdateSettings()
. - Fix background locations not received when unregistering other providers.
- Improve
linePattern
precision. - Fix local glyph rasterization to ensure the correct Typeface is used.
- Fix
CustomRasterSource
rendering when camera shows antimeridian or multiple world copies.
Known issues
ClipLayer.clipLayerTypes
could not be updated with a layer setter. Layer has to be re-added to update it. This is expected to be fixed in v11.6.0-rc.1.
Dependencies
- Update gl-native to v11.6.0-beta.1 and common to v24.6.0-beta.1.