# Module: ol/control/defaults

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/control/defaults

### Functions

#### defaults(options){Collection<Control>}

control/defaults.js, line 37

      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: `Zoom` `Rotate` `Attribution`

  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`.