new Rotate(opt_options)
control/Rotate.js, line 36
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Rotate options.
|
|||||||||||||||||||||||||||||||||||||
import Rotate from 'ol/control/Rotate';
A button control to reset rotation to 0.
To style this control use css selector .ol-rotate. A .ol-hidden css
selector is added to the button when the rotation is 0.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Rotate options.
|
|||||||||||||||||||||||||||||||||||||