Packagecom.google.maps.controls
Classpublic class MapTypeControlOptions

Class MapTypeControlOptions specifies a set of options for the map type control.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined by
  ALIGN_HORIZONTALLY : Number = 0
[static] Align buttons horizontally
MapTypeControlOptions
  ALIGN_VERTICALLY : Number = 1
[static] Align buttons vertically
MapTypeControlOptions
Property detail
buttonAlignmentproperty
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
buttonSizeproperty 
buttonSize:Point  [read-write]

Button size.

Implementation
    public function get buttonSize():Point
    public function set buttonSize(value:Point):void
buttonSpacingproperty 
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
buttonStyleproperty 
buttonStyle:ButtonStyle  [read-write]

Button style.

Implementation
    public function get buttonStyle():ButtonStyle
    public function set buttonStyle(value:ButtonStyle):void
positionproperty 
position:ControlPosition  [read-write]

Control's position on the map.

Implementation
    public function get position():ControlPosition
    public function set position(value:ControlPosition):void
Constructor detail
MapTypeControlOptions()constructor
public function MapTypeControlOptions(param:Object = null)

Constructs an MapTypeControlOptions object, optionally initializing it from an object.

Parameters
param: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)
   }
Method detail
toString()method
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of this object.
Constant detail
ALIGN_HORIZONTALLYconstant
public static const ALIGN_HORIZONTALLY:Number = 0

Align buttons horizontally

ALIGN_VERTICALLYconstant 
public static const ALIGN_VERTICALLY:Number = 1

Align buttons vertically