setStyleGeoJSONSourceData
open fun setStyleGeoJSONSourceData(sourceId: String, dataId: String, data: GeoJSONSourceData): Expected<String, None>
Set geojson source data. Call may take significant time for parsing and marshalling depending on the data size.
Direct method use is not recommended, consider using GeoJsonSource.geometry
, GeoJsonSource.feature
, GeoJsonSource.featureCollection
, GeoJsonSource.data
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
data
the GeoJson source data