# Polyline

#### internal constructor new Cesium.Polyline()
engine/Source/Scene/Polyline.js 37

Create this by calling `PolylineCollection#add`. Do not call the constructor directly.
A renderable polyline.

##### See:

- PolylineCollection

### Members

#### distanceDisplayCondition : DistanceDisplayCondition
engine/Source/Scene/Polyline.js 335

Gets or sets the condition specifying at what distance from the camera that this polyline will be displayed.

Default Value: `undefined`

#### id : *
engine/Source/Scene/Polyline.js 295

Gets or sets the user-defined value returned when the polyline is picked.

#### loop : boolean
engine/Source/Scene/Polyline.js 250

Gets or sets whether a line segment will be added between the first and last polyline positions.

#### material : Material
engine/Source/Scene/Polyline.js 203

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.

#### positions : Array.<Cartesian3>
engine/Source/Scene/Polyline.js 152

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
    ]);

#### show : boolean
engine/Source/Scene/Polyline.js 123

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.

#### width : number
engine/Source/Scene/Polyline.js 226

Gets or sets the width of the polyline.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.