[OpenLayers-Users] Get the length of a line string
emmexx
emmexx at tiscalinet.it
Tue May 10 05:05:48 EDT 2011
Il 05/10/2011 10:45 AM, Janis Elmeris scrisse:
> Hello!
>
> Is getting all vertices (getVertices) of a LineString and using their
> distanceTo method and summing all the distances together would be the
> right way to calculate the length of a line string? If yes, why isn't it
> a standard function of LineString (it seems to me that it should be, and
> also Google maps API has such).
What about getLength() ? :-)
Api: Geometry.Collection
Bye
maxx
More information about the Users
mailing list