Module: ol/control/defaults

ol/control/defaults


Functions

import {defaults} from 'ol/control/defaults';

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

Include Attribution.

attributionOptions Options | undefined

Options for Attribution.

rotate boolean (defaults to true)

Include Rotate.

rotateOptions Options | undefined

Options for Rotate.

zoom boolean | undefined

Include Zoom.

zoomOptions Options | undefined

Options for Zoom.

Returns:
A collection of controls to be used with the Map constructor's controls option.

Type Definitions

DefaultsOptions{Object}

Properties:
Name Type Description
attribution boolean
(defaults to true)

Include Attribution.

attributionOptions Options | undefined

Options for Attribution.

rotate boolean
(defaults to true)

Include Rotate.

rotateOptions Options | undefined

Options for Rotate.

zoom boolean | undefined

Include Zoom.

zoomOptions Options | undefined

Options for Zoom.