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 theMap
constructor'scontrols
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
.