setStyleLayerProperties

open fun setStyleLayerProperties(layerId: String, properties: Value): Expected<String, None>

Sets style layer properties. This method can be used to perform batch update for a style layer properties. The structure of a provided `properties` value must conform to a format for a corresponding [layer type](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/). Modification of a layer [id](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#id) and/or a [layer type] (https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#type) is not allowed.

Return

string describing an error if the operation was not successful, empty otherwise.

Parameters

layerId

A style layer identifier.

properties

A map of style layer properties.