Repository navigation
v3.0.0-alpha.31
Pre-release
Pre-release
Warning
This is an alpha release. APIs may change before the stable release. Not recommended for production use.
What's new ✨
- Add
GeoJsonSource.dynamicDatathat maps to thedynamicoption in the style specification. On web, set it to true for the source to acceptaddGeoJSONSourceFeatures,updateGeoJSONSourceFeatures, andremoveGeoJSONSourceFeatures. Android and iOS ignoredynamicDataand accept feature updates on all GeoJSON sources. - [web] Fix
removeGeoJSONSourceFeaturesfailing to remove a feature that was added with a numeric id. - [web] Add ornament settings support:
compass,scaleBar,logoandattributionare backed by the Mapbox GL JS controls and support partial updates, matching Android and iOS. Some fields have no GL JS counterpart and are stored and returned bygetSettingswithout being applied; see each field's documentation. NoteLogoSettings.enabledandAttributionSettings.enabledare a restricted API. - [web] Fix
addStyleImportFromJSONandupdateStyleImportWithJSON. They completed before the style held the fragment, so the next call failed with "Style is not done loading". Both now complete after the style holds the fragment, as on Android and iOS. - [web] Fix
MapWidgetignoringstyleUri. The map loaded a default style first, firedonStyleLoadedfor it, then loaded the requested style, which removed everythingonStyleLoadedhad added. The map now loads the requested style directly. - [web] Document how web keeps a GeoJSON feature id. GL JS keeps the id only if it is a number, or a string that holds a number. It removes all other string ids, and the feature then has no id on web. Use a number for these ids, or put the id in a feature property.
Platform API coverage
Web support is actively being developed. Not all APIs available on iOS and Android are supported on web yet — full parity is coming in future releases. APIs that are not available on a given platform will throw UnimplementedError at runtime.