# Module: ol/control/ZoomToExtent

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

## ol/control/ZoomToExtent

### Classes

ZoomToExtent

### Type Definitions

#### Options{Object}

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `className` | string (defaults to 'ol-zoom-extent') | Class name.
  `target` | HTMLElement | string | undefined | Specify a target if you want the control to be rendered outside of the map's viewport.
  `label` | string | HTMLElement (defaults to 'E') | Text label to use for the button. Instead of text, also an element (e.g. a `span` element) can be used.
  `tipLabel` | string (defaults to 'Fit to extent') | Text label to use for the button tip.
  `extent` | Extent | undefined | The extent to zoom to. If undefined the validity extent of the view projection is used.
  `fitOptions` | FitOptions | undefined | Options to pass to the view when fitting the extent (e.g. `padding`, `duration`, `minResolution`, `maxZoom`, `easing`, `callback`).