new LayerSwitcherImage( [options])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
Object |
<optional> |
Control options. |
Extends
Members
-
tip
-
List of tips for internationalization purposes
- Inherited From:
- Overrides:
Methods
-
displayInLayerSwitcher(layer)
-
Test if a layer should be displayed in the switcher
Parameters:
Name Type Description layer
ol.layer - Inherited From:
- Overrides:
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:
- ol.control.LayerSwitcher#drawList
-
drawPanel()
-
Draw the panel control (prevent multiple draw due to layers manipulation on the map with a delay function)
- Inherited From:
- Overrides:
-
getLayerClass(layer)
-
Select a layer
Parameters:
Name Type Description layer
ol.layer.Layer - Inherited From:
- Overrides:
Returns:
the layer classname
- Type
- string
-
getPanel()
-
Get control panel
- Inherited From:
- Overrides:
-
getSelection()
-
Get selected layer
- Inherited From:
- Overrides:
Returns:
- Type
- ol.layer.Layer
-
hide()
-
Hide control
- Inherited From:
- Overrides:
-
isOpen()
-
Is control open
- Inherited From:
- Overrides:
Returns:
- Type
- boolean
-
overflow()
-
Disable overflow
- Overrides:
- ol.control.LayerSwitcher#overflow
-
selectLayer(layer)
-
Select a layer
Parameters:
Name Type Description layer
ol.layer.Layer - Inherited From:
- Overrides:
-
setHeader(html)
-
Add a custom header
Parameters:
Name Type Description html
Element | string content html
- Inherited From:
- Overrides:
-
setLayerVisibility(layer, li)
-
Set visibility for a layer
Parameters:
Name Type Description layer
ol.layer.Layer li
Element the list element
- Inherited From:
- Overrides:
-
setMap(map)
-
Set the map instance the control is associated with.
Parameters:
Name Type Description map
_ol_Map_ The map instance.
- Inherited From:
- Overrides:
-
show()
-
Show control
- Inherited From:
- Overrides:
-
toggle()
-
Toggle control
- Inherited From:
- Overrides: