OpenLayers.Layer.PointTrack - OpenLayers

# OpenLayers. Layer. PointTrack

Vector layer to display ordered point features as a line, creating one LineString feature for each pair of two points.

#### Inherits from

- OpenLayers.Layer.Vector

Summary

OpenLayers. Layer. PointTrack | Vector layer to display ordered point features as a line, creating one LineString feature for each pair of two points.
Constructor |
OpenLayers. PointTrack | Constructor for a new OpenLayers.PointTrack instance.
Functions |
addNodes | Adds point features that will be used to create lines from, using point pairs.
Constants |
OpenLayers. Layer. PointTrack. dataFrom | {Object} with the following keys

### Constructor

### OpenLayers. PointTrack

Constructor for a new OpenLayers.PointTrack instance.

#### Parameters

name | {String} name of the layer
options | {Object} Optional object with properties to tag onto the instance.

### Functions

### addNodes

> addNodes: function( | pointFeatures | )

Adds point features that will be used to create lines from, using point pairs. The first point of a pair will be the source node, the second will be the target node.

#### Parameters

pointFeatures | {Array(OpenLayers.Feature)}

### Constants

### OpenLayers. Layer. PointTrack. dataFrom

{Object} with the following keys

- SOURCE_NODE: take data/attributes from the source node of the line
- TARGET_NODE: take data/attributes from the target node of the line

> addNodes: function( | pointFeatures | )

Adds point features that will be used to create lines from, using point pairs.
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.
Features are combinations of geography and attributes.
Close