ThinkGeo.com    |     Documentation    |     Premium Support

Escape a trackoverlay operation works differently for polygon and line

Yale provided me some code to be able to cancel a trackoverlay operation and it works well.  The issue is for a polygon the user has to have at least 2 vertexs to be able to cancel, where for a line there only has to be 1 vertex?


Is this a bug or working as designed?  Would it be possible to have all trackshapes operate in the same manner?


 


Thanks,


Ed



Ed,


We designed to make it work like this, because the polygon which just has 2 vertices is an invalid polygon, we can just show it but can not operate it by default. We also have a try to write a CustomerTrackInteractiveOverlay inherited from TrackInteractiveOverlay to satisfy your requirement, but we found there is a bug in the TrackInteractiveOverlay prevents us from doing this. We have just fixed this bug and you can implement that with the next version of DesktopEdition. The sample in the attachment will work using the latest build of DesktopEdition (3.0.425).
Any more questions please let me know.
Thanks,
sun

1236-TrackOverlayWithEsc.zip (14.3 KB)

We rolled out our product to our first significant customer last week (yipee!).   One of the first things someone did was want to cancel drawing a polygon.    I would like to subscribe to a new build that has this feature when you think you have a nice stable one. 
  
 Thanks!

Ted,  
  
 We are on the way of next public release; please keep an eye on it. 
  
 Thanks. 
  
 Yale