AnsweredAssumed Answered

RESOLVED: Clearing the display of trackPolygons

Question asked by geonetadmin on Jul 18, 2011
Latest reply on Nov 5, 2012 by geonetadmin
Original User: Scole

I have a tool in an add-in in which the user draws a polygon on the screen using trackPolygon and then the geometry of the polygon is used to query another data layer. This all works just fine but as the add-in is used multiple times, the display gets cluttered with multiple polygons.

How can I flush the display to remove any previously drawn polygons? I tried inserting Application.ActiveMapDisplay.CancelTracking into my code either at the beginning or end of my code (an onClick event) but it does not appear to do anything.