Hi,
I'm currently busy with an editing module in our ThinkGeo powered application. On creating polygons for a polygon layer I make use of the TrackShapeLayer to draw polygons. Once I'm done, I commit the track shapes to another layer for permanent storage. TrackShapeLayer.InternalFeatures.Clear rids itself of shapes properly. all this works fine BUT the moment I terminate the drawing process abruptly whilst drawing a polygon in TrackMode.Polygon as follows:
map.trackOverlay.TrackShapeLayer.InternalFeatures.Clear();
map.TrackOverlay.TrackMode = TrackMode.None();
map.Refresh(map.TrackOverlay);
... all internal features are cleared and the TrackOverlay gets refreshed ridding itself of all internal temporary features. Yes, that is correct excepting for the moment I enter back into TrackMode.Polygon. The shape I had been busy drawing prior to the abrupt drawing termination earlier is still shown and active as if waiting for me to complete it with a double click. Is there a way to clear this "ghost" shape from the TrackShapeLayer?
Many thanks
Nathanael