That method is called getCoordinates() in OpenLayers 3, and it returns
an GeoJSON compatible coordinates array..

Andreas.

On Tue, Jul 19, 2016 at 8:22 PM, João Rodrigues via OL3 Dev
<ol3-dev+apn2wqcv7oeyepv6hsk0iibaacfj_vja1kyu4arzmhp3d_bm39ihb...@googlegroups.com>
wrote:
> Hi.
>
> In OpenLayers 2, there was a "getVertices" method in every geometry class,
> that would return an array of points (array of  OpenLayers.Geometry.Point).
>
> It seems that OpenLayers 3 doesn't have that method.
>
> Is there a simple way to get the vertices as an array of ol.geom.Point, even
> when we don't know what geometry it is? I mean, I wanted a method that would
> return the vertices independently of whether it is a point, line, polygon,
> multipolygon, etc.
>
> Wouldn't it be nice to add the "getVertices" method in OL3, too? I would
> gladly try to do it.
>
> Thanks. :)
>
> João Rodrigues
>
> --
> You received this message because you are subscribed to the Google Groups
> "OL3 Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/ol3-dev.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ol3-dev/f8992fd3-8986-4740-b21b-a90fcd555cf7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Andreas Hocevar
Geospatial Solutions Engineer | Boundless
[email protected]
@boundlessgeo

-- 
You received this message because you are subscribed to the Google Groups "OL3 
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ol3-dev/CAOiJ94izWHMPjzn7kZ1wZ%3DPb_a%3D4PLs9vHSazWjPbcYKuoj%2Bsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to