From: Alexandre A. S. <aas...@gm...> - 2011-07-25 14:21:16
|
Hi, I think that getVertices() is not currently wrapped, but you can use for LineString class getComponents(), that returns an array of points. Take care if you use a Polygon instead of a Linestring, because getComponents will return to you an array of LinearRing objects. Cheers, Alex ________________________________________ De: Lukas Johansson [luk...@de...] Enviado el: lunes, 25 de julio de 2011 15:18 Para: Cristian Ciofu; gwt...@li... Asunto: Re: [Gwt-openlayers-users] Getting points coordinates for a polyline OpenLayers.Geometry.getVertices()? Return a list of all points in this geometry. Not sure if it’s wrapped in gwt-ol but I would guess so. Från: Cristian Ciofu [mailto:cri...@gm...] Skickat: den 25 juli 2011 09:27 Till: gwt...@li... Ämne: [Gwt-openlayers-users] Getting points coordinates for a polyline Hello, I want to add in Gwt-openlayersa polyline and want to "take" after drawing it a list with the coordinates of the points that "builds the line". I saw that I can take the bounds and the coordinates of the last point (the double-click that announce that I finished drawing). But I need the coordinates of all the points from the first one to the last one and not only the last one. Any ideas? Thank you! ............................................................................ Best regards, Chris ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ |