Geoportal Extension for OpenLayers
API Reference

Class: ControlList

ol.control.ControlList

ControlList Control.

new ControlList(options)

Controls/ControlList/ControlList.js, line 34
Name Type Description
options Object

ControlList control options

Extends

Members

collapsed

{Boolean} specify if control is collapsed (true) or not (false)

draggable

{Boolean} specify if control is draggable (true) or not (false)

Methods

clean()

Controls/ControlList/ControlList.js, line 156

Clean UI : reinit control

getCollapsed(){Boolean}

Controls/ControlList/ControlList.js, line 119

Returns true if widget is collapsed (minimized), false otherwise

Returns:
- true if widget is collapsed

getContainer(){DOMElement}

Controls/ControlList/ControlList.js, line 149

Get container

setCollapsed(collapsed)

Controls/ControlList/ControlList.js, line 128

Collapse or display widget main container

Name Type Description
collapsed Boolean

True to collapse widget, False to display it

setMap(map)

Controls/ControlList/ControlList.js, line 84

Overwrite OpenLayers setMap method

Name Type Description
map ol.Map

Map.