[OpenLayers-Users] each lineString point should remeber their timestamp

Bart van den Eijnden bartvde at osgis.nl
Wed Dec 21 07:21:44 EST 2011


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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111221/99462fd0/attachment.html


More information about the Users mailing list