Package | com.google.maps.controls |
Class | public final class ControlPosition |
Method | Defined by | ||
---|---|---|---|
ControlPosition(anchor:Number, opt_paddingX:Number = 0, opt_paddingY:Number)
Constructs a ControlPosition from offsets relative to a specified
map corner.
| ControlPosition | ||
getAnchor():Number
Retrieves the anchor identifier.
| ControlPosition | ||
getOffsetX():Number
Retrieves the horizontal offset.
| ControlPosition | ||
getOffsetY():Number
Retrieves the vertical offset.
| ControlPosition | ||
toString():String
String representation of position object.
| ControlPosition |
Constant | Defined by | ||
---|---|---|---|
ANCHOR_BOTTOM_LEFT : Number = 0x20 [static]
The control will be anchored in the bottom left corner of the map.
| ControlPosition | ||
ANCHOR_BOTTOM_RIGHT : Number = 0x21 [static]
The control will be anchored in the bottom right corner of the map.
| ControlPosition | ||
ANCHOR_TOP_LEFT : Number = 0 [static]
The control will be anchored in the top left corner of the map.
| ControlPosition | ||
ANCHOR_TOP_RIGHT : Number = 1 [static]
The control will be anchored in the top right corner of the map.
| ControlPosition |
ControlPosition | () | constructor |
public function ControlPosition(anchor:Number, opt_paddingX:Number = 0, opt_paddingY:Number)
Constructs a ControlPosition from offsets relative to a specified map corner.
Parametersanchor:Number — Anchor type.
|
|
opt_paddingX:Number (default = 0 ) — Horizontal padding (defaults to 0).
|
|
opt_paddingY:Number — Vertical padding (if different from horizontal padding).
|
var position:ControlPosition = new ControlPosition( ControlPosition.ANCHOR_TOP_RIGHT, 16, 10);
getAnchor | () | method |
public function getAnchor():Number
Retrieves the anchor identifier.
ReturnsNumber — Anchor identifier.
|
if (position.getAnchor()==ControlPosition.ANCHOR_BOTTOM_LEFT) trace("Positioned relative to the map's bottom-left corner.");
getOffsetX | () | method |
public function getOffsetX():Number
Retrieves the horizontal offset.
ReturnsNumber — The horizontal offset.
|
getOffsetY | () | method |
public function getOffsetY():Number
Retrieves the vertical offset.
ReturnsNumber — the vertical offset.
|
toString | () | method |
public function toString():String
String representation of position object.
ReturnsString |
ANCHOR_BOTTOM_LEFT | constant |
public static const ANCHOR_BOTTOM_LEFT:Number = 0x20
The control will be anchored in the bottom left corner of the map.
ANCHOR_BOTTOM_RIGHT | constant |
public static const ANCHOR_BOTTOM_RIGHT:Number = 0x21
The control will be anchored in the bottom right corner of the map.
ANCHOR_TOP_LEFT | constant |
public static const ANCHOR_TOP_LEFT:Number = 0
The control will be anchored in the top left corner of the map.
ANCHOR_TOP_RIGHT | constant |
public static const ANCHOR_TOP_RIGHT:Number = 1
The control will be anchored in the top right corner of the map.