setStyleLayerProperties

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. Modification of a layer id and/or a layer type (https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#type) is not allowed.

Return

A 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.