Packagecom.google.maps.overlays
Classpublic class PolylineOptions

PolylineOptions class specifies a set of rendering parameters for polylines.



Public Properties
 PropertyDefined by
  geodesic : Object
A Boolean value that specifies whether this is a geodesic polyline.
PolylineOptions
  strokeStyle : StrokeStyle
Polyline stroke style.
PolylineOptions
Public Methods
 MethodDefined by
  
PolylineOptions(param:Object = null)
Constructs a new PolylineOptions object, optionally initializing it from an object.
PolylineOptions
  
[static] Retrieves the PolylineOptions instance that represents the default set of options that applies to all polylines.
PolylineOptions
  
[static] Sets the default set of options that applies when new polylines are created.
PolylineOptions
  
toString():String
Returns a String representation of this object.
PolylineOptions
Property detail
geodesicproperty
geodesic:Object  [read-write]

A Boolean value that specifies whether this is a geodesic polyline.

Implementation
    public function get geodesic():Object
    public function set geodesic(value:Object):void
strokeStyleproperty 
public var strokeStyle:StrokeStyle

Polyline stroke style.

Constructor detail
PolylineOptions()constructor
public function PolylineOptions(param:Object = null)

Constructs a new PolylineOptions 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:PolylineOptions = new PolylineOptions({
     strokeStyle: {
       thickness: 3,
       color: 0x123456,
       alpha: 0.5,
       pixelHinting: true
     }
   });

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

Retrieves the PolylineOptions instance that represents the default set of options that applies to all polylines.

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

Returns
PolylineOptions — Default polyline options.
setDefaultOptions()method 
public static function setDefaultOptions(defaults:PolylineOptions):void

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

Returns a String representation of this object.

Returns
String — String representation of this object.