Class: WMS

cercalia.WMS

new cercalia.WMS(name, urls, params, options)

Name Type Description
name string

Name of WMS layer to paint

urls string | Array.<string>

URL o URLs (array) from WMS service

params Object

Object with key / value pairs with the required parameters to launch a GETMAP query to WMS server. If not specified some have associated default value: (name options in capital letters) SERVICE: "WMS", VERSION: "1.1.1" REQUEST: "GetMap", STYLES: "", EXCEPTIONS: "application/vnd.ogc.se_inimage" FORMAT: "image/jpeg" The following are mandatory: SRS, LAYERS

options Object

Hash table with extra options to configure the WMS layer

Methods

Removes the object with all its attributes

Returns:
ClassName from cercalia.WMS object.

getLayer(){ol.layer.Tile}

Returns:
WMS Source. OL3 Object ol.layer.Tile
Returns:
map Map, in case of WMS layer is painted in a map. If not, returns null
Returns:
WMS layer name
Returns:
params Returns WMS 'params'

getSource(){ol.source.TileWMS}

Returns:
WMS Source. OL3 Object ol.source.TileWMS

We assign a map to the object. If it's already exist, is deleted in the existing map and WMS layer is painted on the map passed as parameter. If parameter is "null", it's removed from the map.

Name Type Description
map cercalia.Map | null

Map.

position number

ZIndex position from layers.

Updates the parameters

Name Type Description
params Object