OverlayLayer

OverlayLayer

Overlay layer

Constructor

new OverlayLayer(config)

Source:
Parameters:
Name Type Description
config Object

Configuration object

Properties
Name Type Attributes Default Description
title String <optional>
'OverlayLayer'

Layer title

visible Boolean <optional>
false

Layer initial status

server String

URL of map server

layerName String

Name of layer to display

geometryName String <optional>
geom

Name of the geometry column

attribution String <optional>
''

Layer data attribution

exclusive Boolean <optional>
false

If true, when the layer is shown, all other overlay layers are hidden

opacity Float <optional>
1

Layer opacity

filters Array.<Filter> <optional>

Set of filters to apply to the layer. Overrides global dashboard filters.

layerParams Object <optional>

Extra params for OpenLayers Layer constructor

sourceParams Object <optional>

Extra params for OpenLayers Source constructor

Extends

Members

(readonly) filterString :String

Source:

All filter strings joined by logical operator

Type:
  • String

source :Object

Source:
Inherited From:

Layer source object (One of OpenLayers' ol.source options)

Type:
  • Object

Methods

fitMap()

Source:
Inherited From:

Fits map to this layer

getVisible() → {Boolean}

Source:
Inherited From:

Returns layer visibility status

Returns:
Type
Boolean