updateGeoJSONSourceFeatures

fun updateGeoJSONSourceFeatures(sourceId: String, dataId: String, features: List<Feature>): Expected<String, None>

Update features in the GeoJSON source. Call may take significant time for parsing and marshalling depending on the data size. Direct method use is not recommended, consider using GeoJsonSource.updateGeoJSONSourceFeatures instead.

Parameters

sourceId

the id of the GeoJSON source

dataId

an arbitrary string used to track the given GeoJSON data, empty string means null ID

features

list of features to update