LayerFilterAPI# webVis API Reference LayerFilterAPI Interface LayerFilterAPI The LayerFilterAPI is used to manage the visualization of Layers. These are additional metadata information from input data and are not always provided. Hierarchy LayerFilterAPI ContextAPI Index Methods getEnabledLayerFilters getRegisteredLayerFilters isNodePartOfEnabledLayers setLayerFilterEnabled Methods getEnabledLayerFilters getEnabledLayerFilters(): string[] Returns the currently defined list of enabled LayerFilters. Returns string[]An array of strings representing the names of the enabled LayerFilters. getRegisteredLayerFilters getRegisteredLayerFilters(): { [key: string]: boolean; } Returns the currently defined list of LayerFilters. Returns { [key: string]: boolean; }Returns the registered LayerFilters and their states. [key: string]: boolean isNodePartOfEnabledLayers isNodePartOfEnabledLayers(nodeID): Promise<boolean> Returns true if the specified nodeID is part of an enabled Layer. Parameters nodeID: number The nodeID which should be checked. Returns Promise<boolean> setLayerFilterEnabled setLayerFilterEnabled(name, enabled): SetLayerFilterEnabledResult Sets layers to enabled whose names are in the array of names. Parameters name: string The name of the LayerFilter enabled: boolean The new enabled state. Returns SetLayerFilterEnabledResult
The LayerFilterAPI is used to manage the visualization of Layers. These are additional metadata information from input data and are not always provided.