Package | com.google.maps.controls |
Class | public class ControlBase |
Inheritance | ControlBase ![]() |
Implements | IControl |
Property | Defined by | ||
---|---|---|---|
map : IMap | ControlBase | ||
position : ControlPosition | ControlBase |
Method | Defined by | ||
---|---|---|---|
ControlBase(position:ControlPosition)
Construct a control located relative to a specfied corner of the map.
| ControlBase | ||
Retrieves the control position.
| ControlBase | ||
getDisplayObject():DisplayObject
Retrieves the control's display object (typically, the control itself).
| ControlBase | ||
getSize():Point
Retrieves the control's size.
| ControlBase | ||
initControlWithMap(map:IMap):void
Sets the instance of the map that the control operates on.
| ControlBase | ||
setControlPosition(controlPosition:ControlPosition):void
Changes control's position.
| ControlBase |
Method | Defined by | ||
---|---|---|---|
clearWrapper():void
Remove all event listeners and clear the wrapper.
| ControlBase |
map | property |
protected var map:IMap
position | property |
protected var position:ControlPosition
ControlBase | () | constructor |
public function ControlBase(position:ControlPosition)
Construct a control located relative to a specfied corner of the map.
Parametersposition:ControlPosition — Positioning of the control relative to the map.
|
// MyControl is a developer-created sub-class of ControlBase. var control:MyControl = new MyControl( new ControlPosition(ControlPosition.ANCHOR_TOP_RIGHT, 2, 2));
clearWrapper | () | method |
protected function clearWrapper():void
Remove all event listeners and clear the wrapper.
getControlPosition | () | method |
public function getControlPosition():ControlPosition
Retrieves the control position.
ReturnsControlPosition —
Position of the control.
|
getDisplayObject | () | method |
public function getDisplayObject():DisplayObject
Retrieves the control's display object (typically, the control itself).
ReturnsDisplayObject — Control's display object.
|
getSize | () | method |
public function getSize():Point
Retrieves the control's size.
ReturnsPoint — Control's size in pixels.
|
initControlWithMap | () | method |
public function initControlWithMap(map:IMap):void
Sets the instance of the map that the control operates on. Normally invoked automatically from the call to Map.addControl().
Parametersmap:IMap — Map interface
|
setControlPosition | () | method |
public function setControlPosition(controlPosition:ControlPosition):void
Changes control's position.
ParameterscontrolPosition:ControlPosition — Control's new position.
|