Skip to content

2.1.0

Latest
Compare
Choose a tag to compare
@evil159 evil159 released this 09 Jul 14:29
· 11 commits to main since this release
776f68b

Features ✨ and improvements 🏁

  • Add ModelLayer API.
  • Add support for offline maps, allowing users to download and store map data on their devices for use in environments with limited or no internet connectivity.
  • Add layer expressions support. To use, specify expressions when constructing a layer.

Before:

mapboxMap.style.setStyleLayerProperty("layer", "line-gradient",
    '["interpolate",["linear"],["line-progress"],0.0,["rgb",255,0,0],0.4,["rgb",0,255,0],1.0,["rgb",0,0,255]]');

After:

LineLayer(
  ...
  lineGradientExpression: [
    "interpolate",
    ["linear"],
    ["line-progress"],
    0.0,
    ["rgb", 255, 0, 0],
    0.4,
    ["rgb", 0, 255, 0],
    1.0,
    ["rgb", 0, 0, 255]
  ],
);
  • Expose text-occlusion-opacity, icon-occlusion-opacity, line-occlusion-opacity, model-front-cutoff, and lineZOffset as experimental.
  • Add min/max/default values for most of the style properties.
  • Expose clusterMinPoints property for GeoJSONSource.
  • Expose SlotLayer and RasterParticleLayer.
  • Expose LocationComponentSettings.slot.
  • Add @experimental annotation to relevant APIs.
  • Expose LineJoin.NONE.

Dependency Updates

  • Update Mapbox Maps SDK to 11.5.0 for Android and 11.5.1 for iOS.
    • For platform-specific updates see: iOS & Android