Skip to content

2.1.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@evil159 evil159 released this 13 Jun 12:00
· 69 commits to main since this release
d20da3b

Features ✨ and improvements 🏁

  • Add ModelLayer API.
  • Support for offline map, allowing users to download and store map data on their devices for use in environments with limited or no internet connectivity.
  • Layer expressions support. Specify expressions when constructing a layer with all new expression support for layers.

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]
  ],
);

Dependency Updates

  • Update Mapbox Maps SDK to 11.5.0-beta.1
    • For platform-specific updates see: iOS & Android