Packagecom.google.maps.styles
Classpublic class StrokeStyle

StrokeStyle class specifies a set of parameters for drawing outlines of graphical objects.



Public Properties
 PropertyDefined by
  alpha : Object
A Number value that specifies the stroke alpha.
StrokeStyle
  color : Object
A Number value that specifies the stroke color.
StrokeStyle
  pixelHinting : Object
A Boolean value that specifies whether pixel hinting is applied.
StrokeStyle
  thickness : Object
A Number value that specifies the stroke thickness.
StrokeStyle
Public Methods
 MethodDefined by
  
StrokeStyle(params:Object = null)
Constructs a new StrokeStyle object, optionally initializing it from an object.
StrokeStyle
  
mergeStyles(styles:Array):StrokeStyle
[static] Merges two or more StrokeStyle objects.
StrokeStyle
  
toString():String
Returns a String representation of this object.
StrokeStyle
Property detail
alphaproperty
alpha:Object  [read-write]

A Number value that specifies the stroke alpha.

Implementation
    public function get alpha():Object
    public function set alpha(value:Object):void
colorproperty 
color:Object  [read-write]

A Number value that specifies the stroke color.

Implementation
    public function get color():Object
    public function set color(value:Object):void

See also

maps.google.com.Color
pixelHintingproperty 
pixelHinting:Object  [read-write]

A Boolean value that specifies whether pixel hinting is applied.

Implementation
    public function get pixelHinting():Object
    public function set pixelHinting(value:Object):void
thicknessproperty 
thickness:Object  [read-write]

A Number value that specifies the stroke thickness.

Implementation
    public function get thickness():Object
    public function set thickness(value:Object):void
Constructor detail
StrokeStyle()constructor
public function StrokeStyle(params:Object = null)

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

Parameters
params:Object (default = null) — An initialization object that contains a set of initial values for the new StrokeStyle object.

Example
   var style:StrokeStyle = new StrokeStyle({
     thickness: 2,
     color: 0xff8030,
     alpha: 0.7,
     pixelHinting: false
   });

Method detail
mergeStyles()method
public static function mergeStyles(styles:Array):StrokeStyle

Merges two or more StrokeStyle objects. Styles are merged in order they come in the array, properties of styles with larger indices in the array overriding values that came earlier.

Parameters
styles:Array — An array of StrokeStyle objects to merge.

Returns
StrokeStyle
toString()method 
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of the style.