[OpenLayers-Dev] #1167: New layer type PointTrack connects point features to lines

Andreas Hocevar andreas.hocevar at gmail.com
Wed Nov 21 19:42:49 EST 2007


Hi,

I created a new vector layer type: OpenLayers.Layer.PointTrack.

Adding features to this layer will result in a point track with
connecting lines between pairs of points. Lines can have the
attributes/data of either the source or the target point. Not only
features of OpenLayers.Feature.Vector can be added to this layer using
the addFeatures() method, but also OpenLayers.Feature.

This layer type can be useful for e.g. displaying GeoRSS feeds with
items that show one entity with changed positions over time (like
vehicle tracking).

A live example is at
http://dev.openlayers.org/sandbox/ahocevar/pointtrack/examples/point-track-markers.html

The patch that is attached to the ticket
(http://trac.openlayers.org/ticket/1167) contains extensive tests, an
example and a GeoRSS track for testing purposes.

Regards,
Andreas.



More information about the Dev mailing list