Constructor
new LayerConfig(cfg)
Create a layer config instance based on a config object
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfg |
object | the lizmap config object for layer
Properties
|
- Source:
Extends
- BaseObjectConfig
Members
abstract :string
The layer abstract
Type:
- string
- Source:
baseLayer :boolean
The layer as base layer activation
Type:
- boolean
- Source:
cached :boolean
The layer cached activation
Type:
- boolean
- Source:
clientCacheExpiration :number
The layer client cache expiration
Type:
- number
- Source:
(nullable) crs :string
The layer crs (layer only)
Type:
- string
- Source:
displayInLegend :boolean
The layer display in legend activation
Type:
- boolean
- Source:
(nullable) extent :Extent
The layer extent (layer only)
Type:
- Extent
- Source:
(nullable) externalAccess :object
The layer external access (layer only)
Type:
- object
- Source:
externalWmsToggle :boolean
The layer provides parameters for external access (layer only)
Type:
- boolean
- Source:
(nullable) geometryType :string
The layer geometry type (layer only)
Type:
- string
- Source:
groupAsLayer :boolean
The layer as group as layer activation (group only)
Type:
- boolean
- Source:
id :string
The layer id - QGIS layer id
Type:
- string
- Source:
imageFormat :string
The layer image format
Type:
- string
- Source:
(nullable) layerType :string
The layer type (layer only)
Type:
- string
- Source:
(nullable) legendImageOption :string
The layer legend image option
Type:
- string
- Source:
link :string
The layer link
Type:
- string
- Source:
maxScale :number
The layer maxScale
Type:
- number
- Source:
minScale :number
The layer minScale
Type:
- number
- Source:
mutuallyExclusive :boolean
The layer mutually exclusive activation (group only)
Type:
- boolean
- Source:
name :string
The layer name - QGIS layer name
Type:
- string
- Source:
noLegendImage :boolean
The layer no legend image activation
replaced by legendImageOption
Type:
- boolean
- Deprecated:
- Yes
- Source:
opacity :number
The layer opacity defined in QGIS project
Type:
- number
- Source:
popup :boolean
The layer popup activation
Type:
- boolean
- Source:
popupDisplayChildren :boolean
The layer popup display children activation
Type:
- boolean
- Source:
popupMaxFeatures :number
The layer popup max features
Type:
- number
- Source:
popupSource :string
The layer popup source
Type:
- string
- Source:
popupTemplate :string
The layer popup template
Type:
- string
- Source:
(nullable) shortname :string
The layer short name - will be the WMS/WFS/WMTS name if not null
Type:
- string
- Source:
singleTile :boolean
The layer singleTile activation
Type:
- boolean
- Source:
title :string
The layer title
Type:
- string
- Source:
toggled :boolean
The layer toggled activation
Type:
- boolean
- Source:
type :string
The layer type: layer or group
Type:
- string
- Source: