On 07/02/2010 12:13 PM, Iswaria wrote: > 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. > http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/Vector-js.html#OpenLayers.Layer.Vector.destroyFeatures
-- Atle Frenvik Sveen Utvikler Geomatikk IKT AS tlf: 45 27 86 89 [email protected]
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
