Known issues 🛑
We do not recommend using this version when deploying on Android. We are actively working on a patch release (2.5.1
) to fix the following critical issue:
- When a map is currently visible and user press home button the
MapboxRenderThread
consumes CPU (potentially keeping one CPU busy).
Features ✨ and improvements 🏁
- Added viewport support to
MapWidget
. Control the camera’s initial position and behavior by specifying a ViewportState subclass in the viewport parameter. This allows for centering on specific locations, following the user’s position, or showing an overview of a geometry. If no viewport is provided, the map uses its default camera settings.MapWidget( viewport: CameraViewportState( center: Point(coordinates: Position(-117.918976, 33.812092)), zoom: 15.0, ), );
- Marked
ClipLayer
as stable. - Updated our generated code to align with iOS and Android platforms. Specifically, the changes:
- Updated experimental
symbolElevationReference
property onSymbolLayer
. - Introduced
backgroundPitchAlignment
property onBackgroundLayer
. - Introduced experimental
fillZOffset
property onFillLayer
. - Introduced experimental
fillExtrusionBaseAlignment
andfillExtrusionHeightAlignment
properties onFillExtrusionLayer
. - Marked get and set
ZOffset
methods onPolygonAnnotationManager
,PolylineAnnotationManager
, andPointAnnotationManager
as experimental. - Marked get and set
symbolElevationReference
methods onPointAnnotationManager
as experimental. - Marked get and set line trim methods on
PolylineAnnotationManager
as experimental. - Added a property
emphasisCircleGlowRange
toLocationIndicatorLayer
to control the glow effect of the emphasis circle – from the solid start to the fully transparent end. - Added experimental
ZOffset
properties toPolylineAnnotationMessenger
,PolygonAnnotationMessenger
, andPointAnnotationMessenger
. - Introduced
FillExtrusionBaseAlignment
andFillExtrusionHeightAlignment
, andBackgroundPitchAlignment
enums.
- Updated experimental