Skip to content

gi-nx


gi-nx / resetLayerLens

ts
function resetLayerLens(layerNameOrId: string): void;

Clear the saved lens (style, filters and property definitions) from a layer

Parameters ​

ParameterTypeDescription
layerNameOrIdstringThe layer name or layer ID

Returns ​

void

Throws ​

Error if the layer is not in the tree