Vector layer to display ordered point features as a line, creating one LineString feature for each pair of two points.
| OpenLayers. | Vector layer to display ordered point features as a line, creating one LineString feature for each pair of two points. |
| Properties | |
| dataFrom | {OpenLayers.Layer.PointTrack.TARGET_NODE} or {OpenLayers.Layer.PointTrack.SOURCE_NODE} optional. |
| styleFrom | {OpenLayers.Layer.PointTrack.TARGET_NODE} or {OpenLayers.Layer.PointTrack.SOURCE_NODE} optional. |
| Constructor | |
| OpenLayers. | 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. | {Number} value for OpenLayers.Layer.PointTrack.dataFrom and OpenLayers.Layer.PointTrack.styleFrom |
| OpenLayers. | {Number} value for OpenLayers.Layer.PointTrack.dataFrom and OpenLayers.Layer.PointTrack.styleFrom |
| OpenLayers. |
{OpenLayers.Layer.PointTrack.TARGET_NODE} or {OpenLayers.Layer.PointTrack.SOURCE_NODE} optional. If the lines should get the data/attributes from one of the two points it is composed of, which one should it be?
{OpenLayers.Layer.PointTrack.TARGET_NODE} or {OpenLayers.Layer.PointTrack.SOURCE_NODE} optional. If the lines should get the style from one of the two points it is composed of, which one should it be?
addNodes: function( pointFeatures, options )
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.
| pointFeatures | {Array(OpenLayers.Feature)} |
| options | {Object} |
| silent | {Boolean} true to suppress (before)feature(s)added events |
{Number} value for OpenLayers.Layer.PointTrack.dataFrom and OpenLayers.Layer.PointTrack.styleFrom
{Number} value for OpenLayers.Layer.PointTrack.dataFrom and OpenLayers.Layer.PointTrack.styleFrom
Adds point features that will be used to create lines from, using point pairs.
addNodes: function( pointFeatures, options )