Package | com.google.maps.controls |
Class | public class MapTypeControlOptions |
Property | Defined by | ||
---|---|---|---|
buttonAlignment : Object
A Number value that specifies button alignment (one of
MapTypeControlOptions.ALIGN_HORIZONTALLY or
MapTypeControlOptions.ALIGN_VERTICALLY).
| MapTypeControlOptions | ||
buttonSize : Point
Button size.
| MapTypeControlOptions | ||
buttonSpacing : Point
Button spacing.
| MapTypeControlOptions | ||
buttonStyle : ButtonStyle
Button style.
| MapTypeControlOptions | ||
position : ControlPosition
Control's position on the map.
| MapTypeControlOptions |
Method | Defined by | ||
---|---|---|---|
MapTypeControlOptions(param:Object = null)
Constructs an MapTypeControlOptions object, optionally
initializing it from an object.
| MapTypeControlOptions | ||
toString():String
Returns a String representation of this object.
| MapTypeControlOptions |
Constant | Defined by | ||
---|---|---|---|
ALIGN_HORIZONTALLY : Number = 0 [static] Align buttons horizontally
| MapTypeControlOptions | ||
ALIGN_VERTICALLY : Number = 1 [static] Align buttons vertically
| MapTypeControlOptions |
buttonAlignment | property |
buttonAlignment:Object
[read-write]A Number value that specifies button alignment (one of MapTypeControlOptions.ALIGN_HORIZONTALLY or MapTypeControlOptions.ALIGN_VERTICALLY).
Implementation public function get buttonAlignment():Object
public function set buttonAlignment(value:Object):void
buttonSize | property |
buttonSize:Point
[read-write]Button size.
Implementation public function get buttonSize():Point
public function set buttonSize(value:Point):void
buttonSpacing | property |
buttonSpacing:Point
[read-write]Button spacing. This is a Point so that buttons can be laid out both horizontally and vertically, with the appropriate coordinate used to space buttons in each case.
Implementation public function get buttonSpacing():Point
public function set buttonSpacing(value:Point):void
buttonStyle | property |
buttonStyle:ButtonStyle
[read-write]Button style.
Implementation public function get buttonStyle():ButtonStyle
public function set buttonStyle(value:ButtonStyle):void
position | property |
position:ControlPosition
[read-write]Control's position on the map.
Implementation public function get position():ControlPosition
public function set position(value:ControlPosition):void
MapTypeControlOptions | () | constructor |
public function MapTypeControlOptions(param:Object = null)
Constructs an MapTypeControlOptions object, optionally initializing it from an object.
Parametersparam:Object (default = null ) — An initialization object containing a set of
values that supplement the default set.
// Initialization object corresponding to the default set. { buttonSize: new Point(67, 19), buttonStyle: new ButtonStyle({ }); buttonSpacing: new Point(0, 0), buttonAlignment: MapTypeControlOptions.ALIGN_HORIZONTALLY, position: new ControlPosition(ControlPosition.ANCHOR_TOP_RIGHT, 10) } |
toString | () | method |
public function toString():String
Returns a String representation of this object.
ReturnsString — String representation of this object.
|
ALIGN_HORIZONTALLY | constant |
public static const ALIGN_HORIZONTALLY:Number = 0
Align buttons horizontally
ALIGN_VERTICALLY | constant |
public static const ALIGN_VERTICALLY:Number = 1
Align buttons vertically