Module: ol/control

ol/control


import * as olControl from 'ol/control';

Methods

import {defaults} from 'ol/control';

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 (defaults to true)

Include module:ol/control/Attribution~Attribution.

attributionOptions module:ol/control/Attribution~Options

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

rotate boolean (defaults to 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.

Type Definitions

DefaultsOptions{Object}

Properties:
Name Type Argument Default Description
attribution boolean <optional>
true

Include module:ol/control/Attribution~Attribution.

attributionOptions module:ol/control/Attribution~Options <optional>

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

rotate boolean <optional>
true

Include module:ol/control/Rotate~Rotate.

rotateOptions module:ol/control/Rotate~Options <optional>

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

zoom boolean <optional>

Include module:ol/control/Zoom~Zoom.

zoomOptions module:ol/control/Zoom~Options <optional>

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