Hi, I have written the script to draw the rectangle. This is the link of my code: http://pastebin.com/HNyT9CJF
But I want to remove the rectangle, (if any) before drawing the rectangle. As of now, I can draw any number of rectangles over the map. But My requirement is to draw only one rectangle and remove the rectangle drawn if any before. How to do it? Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Remove-rectangle-from-the-map-tp5247142p5247142.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
