I ma currently developing a web mapping app. How do I make it possible for my app to clip and save area of interests or area I am working on. I can create a vector layer, modify it and delete if I want to, but how can I clip using OpenLayers 2.
One way to do this is using canvas.
Here's a working solution:
This script allows you to take "screenshots" of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.
And some examples.
Edit: You may be able to use GeoJson.write() to serialize your vector object. Here's another discussion on the matter.