Constructor
new BaseLayerState(baseLayerCfg, itemStateopt)
Create a base layer state based on the base layer config
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
baseLayerCfg |
BaseLayerConfig | the lizmap config object for base layer | ||
itemState |
LayerVectorState | LayerRasterState | LayerGroupState |
<optional> |
null | the lizmap layer item state of the base layer if exists |
- Source:
Members
(nullable) attribution :AttributionConfig
Attribution
Type:
- AttributionConfig
- Source:
hasAttribution :boolean
Attribution is defined
Type:
- boolean
- Source:
hasItemState :boolean
A Lizmap layer item state is associated with this base layer
Type:
- boolean
- Source:
hasKey :boolean
The base layer key is defined
Type:
- boolean
- Source:
hasLayerConfig :boolean
A Lizmap layer config is associated with this base layer
Type:
- boolean
- Source:
itemState :LayerVectorState|LayerRasterState|LayerGroupState
The Lizmap layer item state associated with this base layer
Type:
- LayerVectorState | LayerRasterState | LayerGroupState
- Source:
(nullable) key :string
The base layer key
Type:
- string
- Source:
(nullable) layerConfig :LayerConfig
The Lizmap layer config associated with this base layer
Type:
- LayerConfig
- Source:
loadStatus :string
The layer load status
Type:
- string
- Source:
- See:
-
- MapLayerLoadStatus
loadStatus
Set layer load status
- Source:
- See:
-
- MapLayerLoadStatus
name :string
The base layer name
Type:
- string
- Source:
singleWMSLayer
Set if the base layer is loaded in a single WMS Layer or not
- Source:
singleWMSLayer :boolean
The base layer is loaded in a single WMS Layer or not
Type:
- boolean
- Source:
title :string
The base layer title
Type:
- string
- Source:
type :string
The base layer type
Type:
- string
- Source: