Constructor
new LayerVectorState(layerTreeItemCfg, layersOrder, parentMapGroupopt)
Creating a vector layer state
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layerTreeItemCfg |
LayerTreeItemConfig | the layer item config | |
layersOrder |
Array.<number> | the layers order | |
parentMapGroup |
LayerGroupState |
<optional> |
the parent layer group |
- Source:
Extends
- LayerLayerState
Members
checked :boolean
Layer tree item is checked
Type:
- boolean
- Source:
checked :boolean
Set layer tree item is checked
Type:
- boolean
- Source:
(nullable) expressionFilter :string
Vector layer expression filter
Type:
- string
- Source:
expressionFilter
Update vector layer expression filter
- Source:
(nullable) extent :Extent
The layer extent
Type:
- Extent
- Source:
(nullable) filterToken :string
Vector layer filter token
Type:
- string
- Source:
filterToken
Update vector layer filter token
- Source:
geometryType :string
The layer geometry type
Type:
- string
- Source:
hasSelectedFeatures :boolean
Vector layer has selected features
The selected features is not empty
Type:
- boolean
- Source:
isFiltered :boolean
Vector layer is filtered
The expression filter is not null
Type:
- boolean
- Source:
isSpatial :boolean
The layer is spatial
Type:
- boolean
- Source:
popupDisplayChildren :boolean
The layer popup display children activation
Type:
- boolean
- Source:
(nullable) selectedFeatures :string
Vector layer selection
Type:
- string
- Source:
selectedFeatures
Update vector layer selection
- Source:
(nullable) selectionToken :string
Vector layer selection token
Type:
- string
- Source:
selectionToken
Update vector layer selection token
- Source:
(nullable) wmsGeographicBoundingBox :LayerGeographicBoundingBoxConfig
WMS layer Geographic Bounding Box
Type:
- LayerGeographicBoundingBoxConfig
- Source:
wmsParameters :object
Parameters for OGC WMS Request
Type:
- object
- Source:
Methods
calculateVisibility() → {boolean}
Calculate and save visibility
- Source:
Returns:
the calculated visibility
- Type
- boolean