Constructor
new MapLayerState(layerItemState, parentMapGroupopt)
Creating a map layer state instance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layerItemState |
LayerVectorState | LayerRasterState | LayerGroupState | the layer item state | |
parentMapGroup |
MapGroupState |
<optional> |
the parent layer map group |
- Source:
Extends
- MapItemState
Members
displayInLayerTree :boolean
Is the map layer displayed in layer tree
Type:
- boolean
- 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:
layerOrder :number
Layer order from top to bottom
Type:
- number
- Source:
layerType :string
Layer type
Type:
- string
- Source:
loadStatus :string
The layer load status
Type:
- string
- Source:
- See:
-
- MapLayerLoadStatus
loadStatus
Set layer load status
- Source:
- See:
-
- MapLayerLoadStatus
singleWMSLayer :boolean
vector layer is loaded in a single layer ImageLayer or not
Type:
- boolean
- Source:
singleWMSLayer :boolean
set if the map layer is loaded in a single ImageWMS layer or not
Type:
- boolean
- Source:
(nullable) symbology :LayerIconSymbology|LayerSymbolsSymbology|LayerGroupSymbology
Layer symbology
Type:
- LayerIconSymbology | LayerSymbolsSymbology | LayerGroupSymbology
- Source:
symbology
Update layer symbology
- Source:
(nullable) wmsAttribution :AttributionConfig
WMS layer attribution
Type:
- AttributionConfig
- Source:
wmsParameters :object
Parameters for OGC WMS Request
Type:
- object
- Source:
wmsSelectedStyleName :string
WMS selected layer style name
Type:
- string
- Source:
wmsSelectedStyleName
Update WMS selected layer style name
based on wmsStyles list
- Source:
wmsStyles :Array.<LayerStyleConfig>
WMS layer styles
Type:
- Array.<LayerStyleConfig>
- Source: