Namespace: control

ol.control

Classes

Attribution
Control
FullScreen
MousePosition
OverviewMap
Rotate
ScaleLine
Zoom
ZoomSlider
ZoomToExtent

Methods

ol.control.defaults(opt_options){ol.Collection.<ol.control.Control>}

src/ol/control/index.js, line 22

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 Description
attribution boolean | undefined

Attribution. Default is true.

attributionOptions olx.control.AttributionOptions | undefined experimental

Attribution options.

rotate boolean | undefined

Rotate. Default is true.

rotateOptions olx.control.RotateOptions | undefined experimental

Rotate options.

zoom boolean | undefined

Zoom. Default is true.

zoomOptions olx.control.ZoomOptions | undefined experimental

Zoom options.

Returns:
Controls.