Angular controller

controller source

Description

Controller for displaying and setting parameters for Wms and its layers, which will be added to map afterwards

Methods

addLayer (layer, layerName, folder, outputFormat, srs)

Parameters

NameTypeDescription
layer Object

capabilities layer object

layerName String

layer name in the map

folder String

name

outputFormat String
srs OpenLayers.Projection

of the layer (PRIVATE) Add selected layer to map???

addLayers (checked)

Seconds step in adding layers to the map, with resampling or without. Lops through the list of layers and calls addLayer.

Parameters

NameTypeDescription
checked boolean

Add all available layers or olny checked ones. Checked=false=all

selectAllLayers

Select all layers from service.

tryAddLayers (checked)

Callback for "Add layers" button. Checks if current map projection is supported by wms service and warns user about resampling if not. Otherwise proceeds to add layers to the map.

Parameters

NameTypeDescription
checked boolean

Add all available layers or only checked ones. Checked=false=all