[OpenLayers-Users] how to save polygons or lines
Christopher Schmidt
crschmidt at metacarta.com
Mon Oct 15 08:51:11 EDT 2007
On Mon, Oct 15, 2007 at 12:51:27AM -0700, R. Ortner wrote:
>
> i addet the EditingToolbar to my map and now i like to save the drawn
> polygons and lines to a file so that i can racall them when i reload the
> map. is that possible?
It's possible to serialize features to a number of formats:
http://openlayers.org/dev/examples/vector-formats.html
Once you do, it's possible to push that data up to a server using
OpenLayers.Ajax.
Using that mechanism, you can save your data to the server, like
the FeatureServer demo does:
http://featureserver.org/demo.html
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list