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, imageFormat, queryFormat, singleTile, tileSize, crs)

Add selected layer to map

Parameters

NameTypeDescription
layer Object

capabilities layer object

layerName String

layer name in the map

folder String

name

imageFormat String
queryFormat String
singleTile Boolean
tileSize OpenLayers.Size
crs OpenLayers.Projection

of the layer

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 layersor ony checked ones. Checked=false=all

selectAllLayers

Select all layers from service.