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
| Parameter | Type | Description |
|---|---|---|
layerNameOrId | string | Current name or full layer ID of the drawing layer |
newLayerNameOrId | string | New 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