[OpenLayers-Users] easiest way to get collection of coordinates from drawn vectors

Mike Quentel mikequentel at yahoo.com
Wed Mar 28 13:55:36 EDT 2007


Collection.js (OpenLayers.Geometry.Collection) has the
following methods for retrieving the point values:

getComponents()
getComponentsString()

OL appears to use the variable name "components" to
represent vertices.

Mike Quentel

--- Mike Quentel <mikequentel at yahoo.com> wrote:

> Using the drawing examples of the vector beta, I'm
> creating an application that allows users to draw
> new
> features on a map.  These new features will then be
> submitted to a database, based on the coordinates of
> the geometries drawn on the map.  
> 
> I need an easy way to obtain the coordinates of the
> drawings, whether they be done in IE or Firefox.  
> 
> I had a look at the API and the FAQ, but I've not
> figured out how to obtain the vertices of a polygon
> or
> polyline; however, I see there is a getX, getY, and
> toString set of functions for a point (Point.js).  
> 
> Any advice on this, please.
> 
> Thanks.
> 
> Mike Quentel
> 
> 
> 	
> 	
> 		
>
___________________________________________________________
> 
> New Yahoo! Mail is the ultimate force in competitive
> emailing. Find out more at the Yahoo! Mail
> Championships. Plus: play games and win prizes. 
>
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 



		
___________________________________________________________ 
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html



More information about the Users mailing list