[Users] How to save features of a selected region into an externalfile?

Matt Priour mpriour at kestrelcomputer.com
Fri Feb 19 15:30:10 CET 2010


Use an OpenLayers.Control.SelectFeature control with a box handler. Set multiple=true and listen to the featuresselected event.
Then just do whatever you want to the features that are passed to the event handler.
By the way the trunk version of OL has the feautresselected (multiple features passed to the handler in an array) event whereas OL 2.8 only includes the featureselected (single feature passed to the handler) which will fire once for each feature selected.

Matt Priour
Kestrel Computer



From: Ozgur Zan 
Sent: Friday, February 19, 2010 1:56 AM
To: users at geoext.org 
Subject: [Users] How to save features of a selected region into an externalfile?


Dear List members,

I want to re-program OpenLayers Select Feature so that when I select a region by drawing a box,
the features in the selected region are saved into a a document (of XML, TXT or any other) rather
than a pop-up or zoom in features. Is there anyone who can guide me?

Best Regards,
Dr. Ozgur ZAN



--------------------------------------------------------------------------------


_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100219/5f47730c/attachment-0001.htm 


More information about the Users mailing list