[OpenLayers-Users] Remove rectangle from the map

Iswaria iswaria.k at ifpindia.org
Fri Jul 2 06:13:18 EDT 2010


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.



More information about the Users mailing list