Module: ol/control

ol/control


Methods

module:ol/control.defaults(opt_options){module:ol/Collection~Collection.<module:ol/control/Control~Control>}

control/util.js, line 27

Set of controls included in maps by default. Unless configured otherwise, this returns a collection containing an instance of each of the following controls:

Name Type Description
options

Defaults options.

Name Type Default Description
attribution boolean true

Include module:ol/control/Attribution~Attribution.

attributionOptions module:ol/control/Attribution~Options

Options for module:ol/control/Attribution~Attribution.

rotate boolean true

Include module:ol/control/Rotate~Rotate.

rotateOptions module:ol/control/Rotate~Options

Options for module:ol/control/Rotate~Rotate.

zoom boolean

Include module:ol/control/Zoom~Zoom.

zoomOptions module:ol/control/Zoom~Options

Options for module:ol/control/Zoom~Zoom.

Returns:
Controls.