Package | com.google.maps.overlays |
Class | public class PolylineOptions |
Property | Defined by | ||
---|---|---|---|
geodesic : Object
A Boolean value that specifies whether this is a geodesic polyline.
| PolylineOptions | ||
strokeStyle : StrokeStyle
Polyline stroke style.
| PolylineOptions |
Method | Defined 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 | ||
setDefaultOptions(defaults:PolylineOptions):void
[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 |
geodesic | property |
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
strokeStyle | property |
public var strokeStyle:StrokeStyle
Polyline stroke style.
PolylineOptions | () | constructor |
public function PolylineOptions(param:Object = null)
Constructs a new PolylineOptions 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:PolylineOptions = new PolylineOptions({ strokeStyle: { thickness: 3, color: 0x123456, alpha: 0.5, pixelHinting: true } });
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 } }
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.
defaults:PolylineOptions — New default full or partial set of polyline options.
|
toString | () | method |
public function toString():String
Returns a String representation of this object.
ReturnsString — String representation of this object.
|