# PolylineVisualizer

#### new Cesium.PolylineVisualizer(scene, entityCollection, primitives, groundPrimitives)
DataSources/PolylineVisualizer.js 80

A visualizer for polylines represented by `Primitive` instances.

Name | Type | Default | Description
--- | --- | --- | ---
`scene` | Scene |  | The scene the primitives will be rendered in.
`entityCollection` | EntityCollection |  | The entityCollection to visualize.
`primitives` | PrimitiveCollection | `scene.primitives` | optional A collection to add primitives related to the entities
`groundPrimitives` | PrimitiveCollection | `scene.groundPrimitives` | optional A collection to add ground primitives related to the entities

### Methods

#### destroy()
DataSources/PolylineVisualizer.js 339

Removes and destroys all primitives created by this instance.

#### isDestroyed() → Boolean
DataSources/PolylineVisualizer.js 332

Returns true if this object was destroyed; otherwise, false.

##### Returns:

True if this object was destroyed; otherwise, false.

#### update(time) → Boolean
DataSources/PolylineVisualizer.js 201

Updates all of the primitives created by this visualizer to match their Entity counterpart at the given time.

Name | Type | Description
--- | --- | ---
`time` | JulianDate | The time to update to.

##### Returns:

True if the visualizer successfully updated to the provided time, false if the visualizer is waiting for asynchronous primitives to be created.