Draw commands have a valid property.  When the isValid() method returns false it is removed and no longer ran.  You can call setValid(false) or override the isValid() method so it will return false when it is done.

Jesse
On 20-Jul-06, at 2:02 AM, Damjan Šavko wrote:

Hello, just a quick question. I managed to draw shapes on the map (e.g. : for selecting features) with the use of  context.sendASyncCommand(DrawShapeCommand)   but how can I remove these shapes when I don't need them anymore?

Thanks


Damjan
_______________________________________________
User-friendly Desktop Internet GIS (uDig)

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to