Constructor
new ExternalLayerTreeItemState(mapItemState)
Instantiate an external layer tree item
Parameters:
Name | Type | Description |
---|---|---|
mapItemState |
ExternalMapItemState | the external map item state |
Extends
Classes
Members
checked :boolean
Map item is checked
Type:
- boolean
checked :boolean
Set map item is checked
Type:
- boolean
expanded :boolean
Layer tree item is expanded
Type:
- boolean
expanded :boolean
Set layer tree item is expanded
Type:
- boolean
layerConfig :null
Lizmap layer config
Type:
- null
level :number
Map item level
Type:
- number
(nullable) mapItemState :ExternalMapItemState
External map item state
Type:
name :string
Map item name
Type:
- string
opacity :number
Map item opacity
Type:
- number
opacity :number
Set map item opacity
Type:
- number
type :string
Map item type
Type:
- string
visibility :boolean
Map item is visible
It depends on the parent visibility
Type:
- boolean
wmsBoundingBoxes :Array
WMS layer Bounding Boxes
Type:
- Array
wmsGeographicBoundingBox :null
WMS layer Geographic Bounding Box
Type:
- null
wmsMaxScaleDenominator :number
WMS layer maximum scale denominator
If the maximum scale denominator is not defined: -1 is returned
If the WMS layer is a group, the maximum scale denominator is the largest of the layers in the group
Type:
- number
wmsMinScaleDenominator :number
WMS Minimum scale denominator
If the minimum scale denominator is not defined: -1 is returned
If the WMS layer is a group, the minimum scale denominator is -1 if only one layer
minimum scale denominator is not defined else the smallest layer minimum scale denominator
in the group
Type:
- number
(nullable) wmsName :string
WMS item name
Type:
- string
wmsTitle :string
WMS item title
Type:
- string
wmsTitle :string
WMS item title
Type:
- string
Methods
calculateVisibility() → {boolean}
Calculate and save visibility
Returns:
the calculated visibility
- Type
- boolean
isVisible(scaleDenominator) → {boolean}
Get item visibility taking care of this.visibility and scale
Parameters:
Name | Type | Description |
---|---|---|
scaleDenominator |
number | the scale denominator for which the visibility has to be evaluated |
Returns:
the item visibility
- Type
- boolean