Methods
-
module:ol/control.defaults(opt_options){module:ol/Collection~Collection.<module:ol/control/Control~Control>}
control.js, line 51 -
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 optionsDefaults options.
Name Type Description attributionboolean (defaults to true) attributionOptionsmodule:ol/control/Attribution~Options Options for
module:ol/control/Attribution~Attribution.rotateboolean (defaults to true) Include
module:ol/control/Rotate~Rotate.rotateOptionsmodule:ol/control/Rotate~Options Options for
module:ol/control/Rotate~Rotate.zoomboolean Include
module:ol/control/Zoom~Zoom.zoomOptionsmodule:ol/control/Zoom~Options Options for
module:ol/control/Zoom~Zoom.Returns:
Controls.
Type Definitions
-
DefaultsOptions{Object}
-
Properties:
Name Type Argument Default Description attributionboolean <optional>
true attributionOptionsmodule:ol/control/Attribution~Options <optional>
Options for
module:ol/control/Attribution~Attribution.rotateboolean <optional>
true Include
module:ol/control/Rotate~Rotate.rotateOptionsmodule:ol/control/Rotate~Options <optional>
Options for
module:ol/control/Rotate~Rotate.zoomboolean <optional>
Include
module:ol/control/Zoom~Zoom.zoomOptionsmodule:ol/control/Zoom~Options <optional>
Options for
module:ol/control/Zoom~Zoom.
OpenLayers