new Polyline(options)
A renderable polyline. Create this by calling
PolylineCollection#add
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object with the following properties:
|
Demo:
See:
Source:
Scene/Polyline.js, line 44
Members
-
id :Object
-
Gets or sets the user-defined object returned when the polyline is picked.Source: Scene/Polyline.js, line 283
-
loop :Boolean
-
Gets or sets whether a line segment will be added between the first and last polyline positions.Source: Scene/Polyline.js, line 242
-
material :Material
-
Gets or sets the surface appearance of the polyline. This can be one of several built-in
Material
objects or a custom material, scripted with Fabric.Source: Scene/Polyline.js, line 195 -
positions :Array.<Cartesian3>
-
Gets or sets the positions of the polyline.
Example:
polyline.positions = Cesium.Cartesian3.fromDegreesArray([ 0.0, 0.0, 10.0, 0.0, 0.0, 20.0 ]);
Source: Scene/Polyline.js, line 151 -
show :Boolean
-
Determines if this polyline will be shown. Use this to hide or show a polyline, instead of removing it and re-adding it to the collection.Source: Scene/Polyline.js, line 122
-
width :Number
-
Gets or sets the width of the polyline.Source: Scene/Polyline.js, line 218