Look at the code for maxVertices:

https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Handler/Path.js#L36

you should be able to do something similar based on length.

I don't think you need to have the timestamp, you can just remove the last 
segment by calling finishGeometry.

Best regards,
Bart

-- 
Bart van den Eijnden
OSGIS - http://osgis.nl

On Dec 21, 2011, at 1:18 PM, dominik wrote:

> Hi,
> i want to draw a linestring of a maximum size. If the Line reach a max
> length last point should fall out of the linstring. So each point need to
> remember their timestamp, to know which point need to be deleted next.
> The way I image is a feature vector which has a geometry point and the
> attribute timestamp. 
> 
> How can i draw this points as a linestring whithout merge the geometry from
> it's attributes?
> I can't draw a line from feature vectors, isn't?
> 
> Is there any other option beside maintain an external array of timestamps.
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/each-lineString-point-should-remeber-their-timestamp-tp7114948p7114948.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to