PathGraphics - Cesium Documentation

# PathGraphics

#### new PathGraphics(options)

  Describes a polyline defined as the path made by an `Entity` as it moves over time.

  Name | Type | Description
  --- | --- | ---

  `options`

  Object

  optional Object with the following properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `leadTime` | Property |  | optional A Property specifying the number of seconds behind the object to show.
  `trailTime` | Property |  | optional A Property specifying the number of seconds in front of the object to show.
  `show` | Property | `true` | optional A boolean Property specifying the visibility of the path.
  `width` | Property | `1.0` | optional A numeric Property specifying the width in pixels.
  `material` | MaterialProperty | `Color.WHITE` | optional A Property specifying the material used to draw the path.
  `resolution` | Property | `60` | optional A numeric Property specifying the width in pixels.

  Source: DataSources/PathGraphics.js, line 34

### Members

#### readonlydefinitionChanged :Event

  Gets the event that is raised whenever a property or sub-property is changed or modified.
  Source: DataSources/PathGraphics.js, line 59

#### leadTime :Property

  Gets or sets the Property specifying the number of seconds in front of the object to show.
  Source: DataSources/PathGraphics.js, line 102

#### material :MaterialProperty

  Gets or sets the Property specifying the material used to draw the path.
  Default Value: `Color.WHITE`
  Source: DataSources/PathGraphics.js, line 79

#### resolution :Property

  Gets or sets the Property specifying the maximum number of seconds to step when sampling the position.
  Default Value: `60`
  Source: DataSources/PathGraphics.js, line 95

#### show :Property

  Gets or sets the boolean Property specifying the visibility of the path.
  Default Value: `true`
  Source: DataSources/PathGraphics.js, line 71

#### trailTime :Property

  Gets or sets the Property specifying the number of seconds behind the object to show.
  Source: DataSources/PathGraphics.js, line 109

#### width :Property

  Gets or sets the numeric Property specifying the width in pixels.
  Default Value: `1.0`
  Source: DataSources/PathGraphics.js, line 87

### Methods

#### clone(result) → PathGraphics

  Duplicates this instance.

  Name | Type | Description
  --- | --- | ---
  `result` | PathGraphics | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new instance if one was not provided.
  Source: DataSources/PathGraphics.js, line 118

#### merge(source)

  Assigns each unassigned property on this object to the value of the same property on the provided source object.

  Name | Type | Description
  --- | --- | ---
  `source` | PathGraphics | The object to be merged into this object.

  Source: DataSources/PathGraphics.js, line 137