Skip to content

2.5.0

Latest
Compare
Choose a tag to compare
@maios maios released this 19 Dec 12:43
fec76ec

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 on SymbolLayer.
    • Introduced backgroundPitchAlignment property on BackgroundLayer.
    • Introduced experimental fillZOffset property on FillLayer.
    • Introduced experimental fillExtrusionBaseAlignment and fillExtrusionHeightAlignment properties on FillExtrusionLayer.
    • Marked get and set ZOffset methods on PolygonAnnotationManager, PolylineAnnotationManager, and PointAnnotationManager as experimental.
    • Marked get and set symbolElevationReference methods on PointAnnotationManager as experimental.
    • Marked get and set line trim methods on PolylineAnnotationManager as experimental.
    • Added a property emphasisCircleGlowRange to LocationIndicatorLayer to control the glow effect of the emphasis circle – from the solid start to the fully transparent end.
    • Added experimental ZOffset properties to PolylineAnnotationMessenger, PolygonAnnotationMessenger, and PointAnnotationMessenger.
    • Introduced FillExtrusionBaseAlignment and FillExtrusionHeightAlignment, and BackgroundPitchAlignment enums.

Dependency Updates

  • Updated Mapbox Maps SDK to 11.9.0
    • For platform-specific updates see: iOS & Android