On Nov 17, 2007 5:47 PM, mike <[EMAIL PROTECTED]> wrote: > Leading on from the modify-feature example, I wonder if there could or > should be a Save / Serialize control in openlayers that could be added and > called like these other functions, and would serialize (and possibly put / > post to a handling script) the vector data into one of the GML type > formats. > > This would be really handy for any kind of editing application.
Hi Mike, FYI, given a vector layer populated with features, you can do this to get a GML string: var serializer = new OpenLayers.Format.GML(); var gml = serializer.write(vectorLayer.features); Given that, building a custom control that does what you want shouldn't be too difficult. -- Eric _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
