new Overview( [options])
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.
Parameters:
Name | Type | Argument | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Control options. Properties
|
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
-
<inner> bounceFn(bounce, amplitude)
-
Elastic bounce
Parameters:
Name Type Description bounce
Int number of bounce
amplitude
Number amplitude of the bounce [0,1]
Returns:
- Type
- Number
-
<inner> elasticFn(bounce, amplitude)
-
Elastic bounce
Parameters:
Name Type Description bounce
Int number of bounce
amplitude
Number amplitude of the bounce [0,1]
Returns:
- Type
- Number