FilterManager class
The FilterManager class manages the filters to avoid filter conflict between widgets.
AMD Module Require
require(["jimu/FilterManager"], function(FilterManager) { /* code goes here */ });
Constructor
FilterManager has no constructor. Use FilterManager.getInstance() to get the FilterManager instance. Example:
|
Methods
applyWidgetFilter (layerId, widgetId, expression) Applies a filter to a layer. Return type: Undefined. Parameters:
|
getFilterExp (layerId, excludeWidgetId) Gets the filter expressions that have been applied to a layer from all widgets unless excluded. Return type: The filter expressions string. Parameters:
|
getWidgetFilter (layerId, widgetId) Gets the filter expression that a widget has applied to a layer. Return type: The filter expression string. Parameters:
|