2.5.0
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
MapboxRenderThreadconsumes 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
ClipLayeras stable. - Updated our generated code to align with iOS and Android platforms. Specifically, the changes:
- Updated experimental
symbolElevationReferenceproperty onSymbolLayer. - Introduced
backgroundPitchAlignmentproperty onBackgroundLayer. - Introduced experimental
fillZOffsetproperty onFillLayer. - Introduced experimental
fillExtrusionBaseAlignmentandfillExtrusionHeightAlignmentproperties onFillExtrusionLayer. - Marked get and set
ZOffsetmethods onPolygonAnnotationManager,PolylineAnnotationManager, andPointAnnotationManageras experimental. - Marked get and set
symbolElevationReferencemethods onPointAnnotationManageras experimental. - Marked get and set line trim methods on
PolylineAnnotationManageras experimental. - Added a property
emphasisCircleGlowRangetoLocationIndicatorLayerto control the glow effect of the emphasis circle – from the solid start to the fully transparent end. - Added experimental
ZOffsetproperties toPolylineAnnotationMessenger,PolygonAnnotationMessenger, andPointAnnotationMessenger. - Introduced
FillExtrusionBaseAlignmentandFillExtrusionHeightAlignment, andBackgroundPitchAlignmentenums.
- Updated experimental