I'm playing around with the TrackMode types in the TrackOverlay and I run into a problem with shape removal.
If I switch from TrackMode.Polygon to TrackMode.None, and then eventually back to TrackMode.Polygon, I run into a problem where the original polygon is still visible. This happens in the case that the user didn't double click in the map to complete the first Polygon.
I've tried doing TrackOverlay.TrackShapeLayer.InternalFeatures.Clear(), and that didn't seem to work.
How do I make the TrackOverlay start fresh when I switch back to Polygon from None?
Also, is there an exposed function for what happens when the user double-clicks during polygon creation? It would be nice if I could add a context menu option for ending the Polygon creation.