Class: LayerPopup

ol.control. LayerPopup


new LayerPopup( [options])

OpenLayers 3 Layer Switcher Control.

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Extends

Members


tip

List of tips for internationalization purposes

Inherited From:

Methods


displayInLayerSwitcher(layer)

Test if a layer should be displayed in the switcher

Parameters:
Name Type Description
layer ol.layer
Inherited From:
Returns:

true if the layer is displayed

Type
boolean

drawList(element)

Render a list of layer

Parameters:
Name Type Description
element elt

to render

Overrides:

drawPanel()

Draw the panel control (prevent multiple draw due to layers manipulation on the map with a delay function)

Inherited From:

overflow()

Disable overflow

Overrides:

setHeader()

Add a custom header

Inherited From:

setMap(map)

Set the map instance the control is associated with.

Parameters:
Name Type Description
map _ol_Map_

The map instance.

Inherited From:

switchLayerVisibility(l, related)

Change layer visibility according to the baselayer option

Parameters:
Name Type Description
l ol.layer
related Array.<ol.layer>

layers

Inherited From:

testLayerVisibility(layer)

Check if layer is on the map (depending on zoom and extent)

Parameters:
Name Type Description
layer ol.layer
Inherited From:
Returns:
Type
boolean