OpenLayers v4.0.1 API - Namespace: control

# Namespace: control

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.control

### Classes

Attribution
Control
FullScreen
MousePosition
OverviewMap
Rotate
ScaleLine
Zoom
ZoomSlider
ZoomToExtent

### Methods

#### ol.control.defaults(opt_options){ol.Collection.<ol.control.Control>}

src/ol/control.js, line 21

  Set of controls included in maps by default. Unless configured otherwise, this returns a collection containing an instance of each of the following controls:

  - `ol.control.Zoom`
  - `ol.control.Rotate`
  - `ol.control.Attribution`

  Name | Type | Description
  --- | --- | ---

  `options`

  Defaults options.

  Name | Type | Description
  --- | --- | ---
  `attribution` | boolean | undefined | Attribution. Default is `true`.
  `attributionOptions` | olx.control.AttributionOptions | undefined | Attribution options.
  `rotate` | boolean | undefined | Rotate. Default is `true`.
  `rotateOptions` | olx.control.RotateOptions | undefined | Rotate options.
  `zoom` | boolean | undefined | Zoom. Default is `true`.
  `zoomOptions` | olx.control.ZoomOptions | undefined | Zoom options.

  ##### Returns:

  Controls.

### Type Definitions

#### ol.control.ScaleLineUnits{string}

  Units for the scale line. Supported values are `'degrees'`, `'imperial'`, `'nautical'`, `'metric'`, `'us'`.