set Style Source Property
Sets a value to a style source property. Note: When setting the "data" property of a geojson source, this method does not synchronously parse the GeoJSON data. The events API shall be used to make sure the provided GeoJSON data is valid. In case the GeoJSON is valid, a MapLoaded event will be propagated. In case of errors, a MapLoadingError event will be propagated instead.
Return
A string describing an error if the operation was not successful, empty otherwise.
Parameters
A style source identifier.
The style source property name.
The style source property value.
Sets a value to a style source property for a source that belongs to a specific style import.
This method allows modification of source properties within imported styles, enabling fine-grained control over sources from different style fragments or imports. If importId is empty, this method falls back to updating the root style.
Return
A string describing an error if the operation was not successful, empty otherwise.
Parameters
An identifier of the style import containing the target source.
A style source identifier.
The style source property name.
The style source property value.