set Style Geo JSONSource Data
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
source Id
the id of the GeoJSON source
data Id
an arbitrary string used to track the given GeoJSON data, empty string means null ID
data
the GeoJson source data