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 Argument Default Description attribution
boolean <optional>
true Include
Attribution
.attributionOptions
Options <optional>
Options for
Attribution
.rotate
boolean <optional>
true Include
Rotate
.rotateOptions
Options <optional>
Options for
Rotate
.zoom
boolean <optional>
Include
Zoom
.zoomOptions
Options <optional>
Options for
Zoom
.