v11.6.0
mapbox-github-ci-writer-public-1
released this
16 Aug 09:44
·
2 commits
to release/v11.6
since this release
11.6.0 August 16, 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. - [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. - [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
. - [compose] Extend
StandardStyleConfigurationState
withtheme: ThemeValue
andshow3dObjects: BooleanValue
properties. - [compose] Introduce composable function
MapboxStandardSatelliteStyle
with dedicatedStandardSatelliteStyleConfigurationState
. - Add new
Style.STANDARD_SATELLITE
style that combines updated satellite imagery and vector layers. - Introduce new import configuration properties for
Style.STANDARD
:theme
,show3dObjects
which could be set withStyle.setStyleImportConfigProperty
. - 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.
- 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. - Support negative values for
CircleLayer.circleBlur
to render inner glow effect. - Support for model-uris as properties in geojson model layers.
- Allow usage of the tile leveling schemes with maximum zoom exceeding 16.
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. - Fix elevated line occlusion issue in 2D mode.
- Fix blinking of layer as you are panning across the antimeridian.
- Fix
modelFrontCutoff
property for meshopt models. - Align location provider default displacement for Android and Google providers.
Dependencies
- Update gl-native to v11.6.0 and common to v24.6.0.