you can access the (added in your case) features in a vector layer as features http://dev.openlayers.org/docs/files/OpenLayers/Layer/Vector-js.html#OpenLayers.Layer.Vector.features
have a look at this example http://www.openlayers.org/dev/examples/vector-formats.html it demonstrates the importing of features from text formats, to save the features, you will need to export them in a text format, u want to do the reverse you can use the format.write() method to get a text version of features http://dev.openlayers.org/docs/files/OpenLayers/Format-js.html which then you could use n an ajax call to post the text version back to the server z On Mon, Apr 9, 2012 at 7:08 PM, Imran Rajjad <[email protected]> wrote: > Hi, > > How do you plan to save them? As a file on user side or a database? > > regards, > Imran > > On Mon, Apr 9, 2012 at 1:58 PM, Alenoosh Baghoomian <[email protected]> > wrote: >> >> Hi >> >> I have a map that has a google layer , markers layer and vector layer >> (including point features to display labels of markers) , user can add >> markers with labels , what I want to do is to save user added geometric >> points , I have searched alot on KML and GML and seen many examples and also >> I've read the OpenLayers book, but I couldn't find any suitable example for >> my case ... Is there a way to solve this ? >> >> Here's my code : >> >> http://codepad.org/FxI62l57 >> >> Thanks in advance for your help :) >> >> Alenoosh >> >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > > > > -- > I.R > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
