[OpenLayers-Users] Remove rectangle from the map
Sveen Atle Frenvik (Geomatikk IKT)
Atle.Frenvik.Sveen at geomatikk.no
Fri Jul 2 06:14:51 EDT 2010
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
atle.frenvik.sveen at geomatikk.no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100702/6eaafd7e/attachment.html
More information about the Users
mailing list