Package | com.google.maps.overlays |
Class | public class PolygonOptions |
Property | Defined by | ||
---|---|---|---|
fillStyle : FillStyle
Polygon fill style.
| PolygonOptions | ||
strokeStyle : StrokeStyle
Polygon stroke style.
| PolygonOptions | ||
tooltip : String
Polygon tooltip text.
| PolygonOptions |
Method | Defined 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 | ||
setDefaultOptions(defaults:PolygonOptions):void
[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 |
fillStyle | property |
public var fillStyle:FillStyle
Polygon fill style.
strokeStyle | property |
public var strokeStyle:StrokeStyle
Polygon stroke style.
tooltip | property |
tooltip:String
[read-write]Polygon tooltip text.
Implementation public function get tooltip():String
public function set tooltip(value:String):void
PolygonOptions | () | constructor |
public function PolygonOptions(param:Object = null)
Constructs a new PolygonOptions object, optionally initializing it from an object.
Parametersparam:Object (default = null ) — An initialization object containing a set of
values that supplement the default set.
|
See also
var options:PolygonOptions = new PolygonOptions({ strokeStyle: { thickness: 3, color: 0x123456, alpha: 0.5, pixelHinting: true }, fillStyle: { color: 0xff0080, alpha: 0.8 }, tooltip: "Some info", });
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 } }
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.
defaults:PolygonOptions — New default full or partial set of polygon options.
|
toString | () | method |
public function toString():String
Returns a String representation of this object.
ReturnsString — String representation of this object.
|