[OpenLayers-Dev] Save drawn polygon

Alex G. unseen.wizard at gmail.com
Mon Feb 1 10:10:55 EST 2010


I am using the drawing example (
http://openlayers.org/dev/examples/editingtoolbar.html) on OpenLayers to
allow users to draw lines and polygons on my map.

I was wondering how may I "save" the polygons that they have drawn. Is there
some way to get the coordinates they have clicked and then save them to some
database or external file? Is there some built-in function to return the
coordinates clicked or something similar?

Do I have to "record" the clicks that the user makes and save them? If yes,
how could I go about doing that?

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100201/8b13a9c7/attachment.html

More information about the Dev mailing list