Skip to content

gi-nx


gi-nx / renameDrawingLayer

ts
function renameDrawingLayer(layerNameOrId: string, newLayerNameOrId: string): void;

Renames an existing drawing layer and updates all associated sections and analytics references.

Parameters ​

ParameterTypeDescription
layerNameOrIdstringCurrent name or full layer ID of the drawing layer
newLayerNameOrIdstringNew name or full layer ID for the drawing layer

Returns ​

void

Throws ​

Error if the new layer name already exists or the source layer does not exist