Packagecom.google.maps.overlays
Classpublic class PolygonOptions

PolygonOptions class specifies a set of rendering parameters for polygons.



Public Properties
 PropertyDefined by
  fillStyle : FillStyle
Polygon fill style.
PolygonOptions
  strokeStyle : StrokeStyle
Polygon stroke style.
PolygonOptions
  tooltip : String
Polygon tooltip text.
PolygonOptions
Public Methods
 MethodDefined by
  
PolygonOptions(param:Object = null)
Constructs a new PolygonOptions object, optionally initializing it from an object.
PolygonOptions
  
[static] Retrieves the PolygonOptions instance that represents the default set of options that applies to all polygons.
PolygonOptions
  
[static] Sets the default set of options that applies when new polygons are created.
PolygonOptions
  
toString():String
Returns a String representation of this object.
PolygonOptions
Property detail
fillStyleproperty
public var fillStyle:FillStyle

Polygon fill style.

strokeStyleproperty 
public var strokeStyle:StrokeStyle

Polygon stroke style.

tooltipproperty 
tooltip:String  [read-write]

Polygon tooltip text.

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

Constructs a new PolygonOptions 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.

See also


Example
   var options:PolygonOptions = new PolygonOptions({
     strokeStyle: {
       thickness: 3,
       color: 0x123456,
       alpha: 0.5,
       pixelHinting: true
     },
     fillStyle: {
       color: 0xff0080,
       alpha: 0.8
     },
     tooltip: "Some info",
   });

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

Retrieves the PolygonOptions instance that represents the default set of options that applies to all polygons.

   // Initialization object corresponding to the initial defaults.
   { fillStyle:
     { color: 0x0000FF,  // blue
       alpha: 0.25
     },
     strokeStyle:
     { color: 0x0055FF,  // blue
       alpha: 0.45,
       thickness: 2,
       pixelHinting: false
     }
   }

Returns
PolygonOptions — Default polygon options.
setDefaultOptions()method 
public static function setDefaultOptions(defaults:PolygonOptions):void

Sets the default set of options that applies when new polygons are created. Options may also be set for each individual polygon. If that is the case, options specified for an individual polygon will take precedence over the default options. The defaults parameter may specify a complete or partial set of polygon 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:PolygonOptions — New default full or partial set of polygon options.
toString()method 
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of this object.