moveStyleLayer

open fun moveStyleLayer(layerId: String, layerPosition: LayerPosition): Expected<String, None>

Moves an existing style layer

Return

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

Parameters

layerId

Identifier of the style layer to move.

layerPosition

The layer will be positioned according to the LayerPosition parameters. If an empty LayerPosition is provided then the layer is moved to the top of the layerstack.