Class: Overview

ol.control. Overview

OpenLayers 3 Layer Overview Control. The overview can rotate with map. Zoom levels are configurable. Click on the overview will center the map. Change width/height of the overview trough css.


new Overview( [options])

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Description
projection ol.ProjectionLike

The projection. Default is EPSG:3857 (Spherical Mercator).

minZoom Number

default 0

maxZoom Number

default 18

rotation boolean

enable rotation, default false

align top | bottom-left | right

position

layers Array.<ol.layer>

list of layers

style ol.style.Style | Array.<ol.style.Style> | undefined

style to draw the map extent on the overveiw

panAnimation bool | elastic

use animation to center map on click, default true

Extends

Methods


calcExtent_()

Calculate the extent of the map and draw it on the overview


getOverviewMap()

Get overview map

Returns:
Type
ol.Map

setMap(map)

Set the map instance the control associated with.

Parameters:
Name Type Description
map ol.Map

The map instance.


setPosition(align)

Set overview map position

Parameters:
Name Type Description
align top | bottom-left | right

toggleMap()

Toggle overview map