moveLayer

fun moveLayer(id: String, beforeId: String? = null)

Moves a layer to a different z-position.

Parameters

id

The ID of the layer to move.

beforeId

The ID of an existing layer to insert the new layer before. If this argument is omitted, the layer will be appended to the end of the layers array.