RotationControl

RotationControl

Displays an interface that allows the user to rotate the viewport

Constructor

new RotationControl(opt_options)

Source:
Parameters:
Name Type Description
opt_options object Options to initialize the rotation control
Properties
Name Type Attributes Description
pmaViewport Viewport Viewport instance this control belongs to
resetTipLabel string <optional>
Label for reset rotation button
flipHorizontallyTipLabel string <optional>
Label for horizontal flip button
flipVerticallyTipLabel string <optional>
Label for vertical flip button
collapsed boolean <optional>
Whether the control starts collapsed

Classes

RotationControl

Methods

getCollapsed() → {boolean}

Source:
Gets the collapsed state of the control
Returns:
True if the control is currently collapsed
Type
boolean

setCollapsed(collapsed)

Source:
Sets the collapsed state of the control
Parameters:
Name Type Description
collapsed boolean True to collapse the control, otherwise false

setMap(map)

Source:
Sets the OpenLayers map this control handles. This is automatically called by OpenLayers
Parameters:
Name Type Description
map ol.Map