LayerFilterAPI

getEnabledLayerFilters()
Returns the currently defined list of enabled layer filters
Returns

Array<string> – An Array of strings representing the names of the enabled filters

getRegisteredLayerFilters()
Returns the currently defined list of layer filters
Returns

any – Returns the registered layer filters and there states

isNodePartOfEnabledLayers(nodeID)
Return if the specified node id is part of an enbled layer
Arguments
  • nodeID (number()) – The node id which should be checked

Returns

Promise<boolean>

setEnabledLayerFilters(layerFilters)
Sets layers to enabled whose names are in the array of names
Arguments
  • layerFilters (Array) – An array which contains the names of the filters which should be set to enabled

Returns

void

setLayerFilterEnabled(name, enabled)
Sets layers to enabled whose names are in the array of names
Arguments
  • name (string()) – The name of the layerfilter

  • enabled (boolean()) – The new enabled state

Returns

SetLayerFilterEnabledResult