Classes
Type Definitions
- 
    
Options{Object}
 - 
Properties:
Name Type Argument Default Description classNamestring <optional> 
'ol-rotate' CSS class name.
labelstring | HTMLElement <optional> 
'⇧' Text label to use for the rotate button. Instead of text, also an element (e.g. a
spanelement) can be used.tipLabelstring <optional> 
'Reset rotation' Text label to use for the rotate tip.
compassClassNamestring <optional> 
'ol-compass' CSS class name for the compass.
durationnumber <optional> 
250 Animation duration in milliseconds.
autoHideboolean <optional> 
true Hide the control when rotation is 0.
renderfunction <optional> 
Function called when the control should be re-rendered. This is called in a
requestAnimationFramecallback.resetNorthfunction <optional> 
Function called when the control is clicked. This will override the default
resetNorth.targetHTMLElement | string <optional> 
Specify a target if you want the control to be rendered outside of the map's viewport.