Class: BaseLayerConfig

BaseLayer.BaseLayerConfig(name, cfg, requiredPropertiesopt, optionalPropertiesopt)

new BaseLayerConfig(name, cfg, requiredPropertiesopt, optionalPropertiesopt)

Create a base layer config instance based on a config object
Parameters:
Name Type Attributes Description
name string the base layer name
cfg object the base layer lizmap config object
Properties
Name Type Attributes Description
title string the base layer title
layerConfig LayerConfig <optional>
the base layer Lizmap layer config
key string <optional>
the base layer key
attribution object <optional>
the base layer attribution config object
requiredProperties object <optional>
the required properties definition
optionalProperties object <optional>
the optional properties definition
Source:

Members

(nullable) attribution :AttributionConfig

Attribution
Type:
  • AttributionConfig
Source:

hasAttribution :boolean

Attribution is defined
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:

(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:

name :string

The base layer name
Type:
  • string
Source:

title :string

The base layer title
Type:
  • string
Source:

type :string

The base layer type
Type:
  • string
Source:
See:
  • BaseLayerTypes