OpenSpace. Control. ControlPosition

Allows a control to be placed relative to a corner of the map window and offset from that corner by a specified amount.

Summary
Allows a control to be placed relative to a corner of the map window and offset from that corner by a specified amount.
{OpenSpace.Control.ControlAnchor} Which corner of the window to anchor to.
{OpenLayers.Size} The offset away from the anchor position towards the centre of the window.
Constructs a new Control.ControlPosition object.

Properties

anchor

{OpenSpace.Control.ControlAnchor} Which corner of the window to anchor to.

offset

{OpenLayers.Size} The offset away from the anchor position towards the centre of the window.

Constructor

OpenSpace. Control. ControlPosition

Constructs a new Control.ControlPosition object.

Parameters

anchor{OpenSpace.Control.ControlAnchor} Which corner of the map window to anchor to.
offset{OpenLayers.Size} The offset away from the anchor position towards the centre of the window.
Allows a control to be placed relative to a corner of the map window.
Instances of this class represent a width/height pair