@react-gis/openlayerscontrol

rotate-control

Functions

RotateControl()

function RotateControl(props: RotateControlProps): null;

Defined in: packages/openlayers/src/control/rotate-control.tsx:11

Parameters

ParameterType
propsRotateControlProps

Returns

null

Interfaces

RotateControlProps

Defined in: packages/openlayers/src/control/rotate-control.tsx:9

Extends

Properties

PropertyTypeDescriptionInherited from
autoHide?booleanHide the control when rotation is 0.ControlOptions.autoHide
className?stringCSS class name.ControlOptions.className
compassClassName?stringCSS class name for the compass.ControlOptions.compassClassName
duration?numberAnimation duration in milliseconds.ControlOptions.duration
element?HTMLElementThe element is the control's container element. This only needs to be specified if you're developing a custom control.ControlOptions.element
label?string | HTMLElementText label to use for the rotate button. Instead of text, also an element (e.g. a span element) can be used.ControlOptions.label
render?(arg0: MapEvent) => void & (arg0: MapEvent) => voidFunction called when the control should be re-rendered. This is called in a requestAnimationFrame callback.FullScreenControlProps.render
resetNorth?() => voidFunction called when the control is clicked. This will override the default resetNorth.ControlOptions.resetNorth
target?string | HTMLElementSpecify a target if you want the control to be rendered outside of the map's viewport.ControlOptions.target
tipLabel?stringText label to use for the rotate tip.ControlOptions.tipLabel