Packagecom.google.maps
Classpublic class MapTypeOptions

MapTypeOptions class specifies a set of parameters for map types.



Public Properties
 PropertyDefined by
  alt : String
Alternative text.
MapTypeOptions
  errorMessage : String
Error message.
MapTypeOptions
  linkColor : Object
A Number value that specifies the link color.
MapTypeOptions
  maxResolution : Object
A Number value that specifies the maximum zoom level of this map type.
MapTypeOptions
  minResolution : Object
A Number value that specifies the minimum zoom level of this map type.
MapTypeOptions
  radius : Object
A Number value that specifies the radius of the map type measured in meters.
MapTypeOptions
  shortName : String
Short name of the map type.
MapTypeOptions
  textColor : Object
A Number value that specifies the text color.
MapTypeOptions
  tileSize : Object
A Number value that specifies the tile size.
MapTypeOptions
  urlArg : String
URL argument of the map type.
MapTypeOptions
Public Methods
 MethodDefined by
  
MapTypeOptions(param:Object = null)
Constructs a new MapTypeOptions object, optionally initializing it from an object.
MapTypeOptions
  
[static] Retrieves the MapTypeOptions instance that represents the default set of options that applies to all map types.
MapTypeOptions
  
[static] Sets the default set of options that applies when new map types are created.
MapTypeOptions
  
toString():String
Returns a String representation of this object.
MapTypeOptions
Property detail
altproperty
alt:String  [read-write]

Alternative text.

Implementation
    public function get alt():String
    public function set alt(value:String):void
errorMessageproperty 
errorMessage:String  [read-write]

Error message.

Implementation
    public function get errorMessage():String
    public function set errorMessage(value:String):void
linkColorproperty 
linkColor:Object  [read-write]

A Number value that specifies the link color.

Implementation
    public function get linkColor():Object
    public function set linkColor(value:Object):void
maxResolutionproperty 
maxResolution:Object  [read-write]

A Number value that specifies the maximum zoom level of this map type.

Implementation
    public function get maxResolution():Object
    public function set maxResolution(value:Object):void
minResolutionproperty 
minResolution:Object  [read-write]

A Number value that specifies the minimum zoom level of this map type.

Implementation
    public function get minResolution():Object
    public function set minResolution(value:Object):void
radiusproperty 
radius:Object  [read-write]

A Number value that specifies the radius of the map type measured in meters.

Implementation
    public function get radius():Object
    public function set radius(value:Object):void
shortNameproperty 
shortName:String  [read-write]

Short name of the map type.

Implementation
    public function get shortName():String
    public function set shortName(value:String):void
textColorproperty 
textColor:Object  [read-write]

A Number value that specifies the text color.

Implementation
    public function get textColor():Object
    public function set textColor(value:Object):void
tileSizeproperty 
tileSize:Object  [read-write]

A Number value that specifies the tile size.

Implementation
    public function get tileSize():Object
    public function set tileSize(value:Object):void
urlArgproperty 
urlArg:String  [read-write]

URL argument of the map type.

Implementation
    public function get urlArg():String
    public function set urlArg(value:String):void
Constructor detail
MapTypeOptions()constructor
public function MapTypeOptions(param:Object = null)

Constructs a new MapTypeOptions object, optionally initializing it from an object.

Parameters
param:Object (default = null) — An initialization object that contains a set of initial values for the MapTypeOptions instance.

See also


Example
   var options:MapTypeOptions = new MapTypeOptions({
     shortName: "sea",
     urlArg: "s",
     maxResolution: 16,
     minResolution: 4,
     tileSize: 256,
     textColor: Color.BLACK,
     linkColor: Color.RED,
     errorMessage: "This sea tile could not be loaded",
     alt: "Sea images",
     radius: 51118000
   });

Method detail
getDefaultOptions()method
public static function getDefaultOptions():MapTypeOptions

Retrieves the MapTypeOptions instance that represents the default set of options that applies to all map types.

   // Initialization object corresponding to the initial defaults.
   { shortName: new String(""),
     urlArg: new String("c"),
     tileSize: 256,
     textColor: Color.BLACK,
     linkColor: Color.DEFAULTLINK,
     errorMessage: new String(""),
     alt: new String(""),
     radius: LatLng.EARTH_RADIUS
   }

Returns
MapTypeOptions — Default map type options.
setDefaultOptions()method 
public static function setDefaultOptions(defaults:MapTypeOptions):void

Sets the default set of options that applies when new map types are created. Options may also be set for each individual map type. If that is the case, options specified for an individual map type will take precedence over the default options. The defaults parameter may specify a complete or partial set of map type options. If a partial set of options is specified, it will supplement the existing defaults, overriding only the values that were set explicitly and leaving the rest unchanged.

Parameters
defaults:MapTypeOptions — New default full or partial set of map type options.
toString()method 
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of this object.