Package | com.google.maps.controls |
Class | public final class OverviewMapControl |
Inheritance | OverviewMapControl ![]() |
Implements | IControl |
Method | Defined by | ||
---|---|---|---|
OverviewMapControl(options:OverviewMapControlOptions = null)
Constructs a OverviewMapControl object.
| OverviewMapControl | ||
Retrieves the control position.
| OverviewMapControl | ||
getDisplayObject():DisplayObject
Retrieves the control's display object (often this would be
the control object itself, but potentially be a different object if
the control contains a sprite rather than extending it).
| OverviewMapControl | ||
getSize():Point
Retrieves the control's size.
| OverviewMapControl | ||
initControlWithMap(map:IMap):void
Sets the instance of the map that this control operates on.
| OverviewMapControl | ||
setControlPosition(position:ControlPosition):void
Sets the control's position and updates its position on the map.
| OverviewMapControl | ||
setSize(newSize:Point):void
Changes the control's size.
| OverviewMapControl |
Method | Defined by | ||
---|---|---|---|
clearWrapper():void
Remove all event listeners and clear the wrapper.
| OverviewMapControl |
OverviewMapControl | () | constructor |
public function OverviewMapControl(options:OverviewMapControlOptions = null)
Constructs a OverviewMapControl object.
Parametersoptions:OverviewMapControlOptions (default = null ) — Map overview control options.
|
See also
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 (often this would be the control object itself, but potentially be a different object if the control contains a sprite rather than extending it).
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 this control operates on. Normally invoked from the call to Map.addControl().
Parametersmap:IMap — The map to which this control should be attached. If this
control had previously been attached to another map, the control
will be removed from that map and attached to this map. If the map
parameter is null, the control will be removed from any previous map but
not attached to a new map.
|
setControlPosition | () | method |
public function setControlPosition(position:ControlPosition):void
Sets the control's position and updates its position on the map.
Parametersposition:ControlPosition — New position for the control.
|
navigatorControl.setControlPosition( new ControlPosition(ControlPosition.ANCHOR_TOP_RIGHT, 2, 2));
setSize | () | method |
public function setSize(newSize:Point):void
Changes the control's size.
ParametersnewSize:Point — Control's new size in pixels.
|