JMap.Application.Layer.Tree.Filter.add
Adds a filter. The list of available metadata schema items can be retieved by calling JMap.Layer.getMetadataSchema.
a JAppAnyLayerFilter object
JMap.Application.Layer.Tree.Filter.applyToMap
Applies the current filter configuration on the map. All layers not matching the filter will be hidden, and only those that match the filter will stay visible on the map. If no filter is defined (or appliable), no change is applied on the map.
JMap.Application.Layer.Tree.Filter.closeAddFilterDialog
Closes the Add Filter dialog box (without saving the filter).
JMap.Application.Layer.Tree.Filter.deleteById
Removes the specified filter from the filter configuration.
the id of the filter to delete
JMap.Application.Layer.Tree.Filter.existById
Tests if the specified filter exists.
the filter id
JMap.Application.Layer.Tree.Filter.getAll
Returns an object containing the current name filter and an array of all current filters.
JMap.Application.Layer.Tree.Filter.getById
Retrieves the specified filter by id.
the filter id
JMap.Application.Layer.Tree.Filter.isActive
Tests if the layer tree filters are active.
Layer tree filters are active, but initially not applied, when the user activates the Filter user interface either by clicking on a button or by calling a JMap NG API method to activate it. See JMap.Application.Layer.Tree.Filter.isApplied for more details.
JMap.Application.Layer.Tree.Filter.isApplied
Tests if the layer tree filters are applied.
Layer tree filters are applied (in action) only if the filtering is active (JMap.Application.Layer.Tree.Filter.isActive returns true) and either one of those two conditions are met:
a) the name filter contains at least 2 characters b) one of the layer filters has been added to the filtering configuration
JMap.Application.Layer.Tree.Filter.oneFilterExistForMetadataId
Tests if at least one filter associated with the specified metadata id exists.
the metadata id
JMap.Application.Layer.Tree.Filter.openAddFilterDialog
Opens the Add Filter dialog box, and activates the Layer panel if it is not already active.
JMap.Application.Layer.Tree.Filter.setActive
Tests if the layer tree filters are active.
Layer tree filters are active, but initially not applied, when the user activates the Filter user interface either by clicking on a button or by calling a JMap NG API method to activate it. See JMap.Application.Layer.Tree.Filter.isApplied for more details
a boolean
JMap.Application.Layer.Tree.Filter.setName
Sets the name filter. Name filter needs to have at least 2 characters to be applied.
Panel layer will show only layers whose name matches the name filter. The name filter is case-insensitive and diacritical characters insensitive.
the name filter to apply
JMap.Application.Layer.Tree.Filter
You can manage the layer panel tree view filtering here.