WMSLayer

WMSLayer

Web Map Service Layer

Constructor

new WMSLayer(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

attribution String <optional>
''

Layer data attribution

exclusive Boolean <optional>
false

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

style String

The style or styles to be used with the layer

tiled Boolean <optional>
false

Use tiles or single image WMS

useCache Boolean <optional>
false

Use GeoWebCache URL instead of direct WMS

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:
Inherited From:

All filter strings joined by logical operator

Type:
  • String

Methods

refresh()

Source:

Reloads layer data using current filters