ThinkGeo.com    |     Documentation    |     Premium Support

How to cancel tracking

I'd like to cancel tracking when the user presses the Escape key. In the map's KeyUp event, I clear the track overlay's internal features, set the track overlay mode to none, and refresh the track overlay. So far so good.


However, the next time I set the track mode to something other than None, the tracking starts at the same point the prior tracking left off.


What's the best way to cancel the tracking?


Thanks!


 


Int



Gregory,


Thanks for your post and question.
 
I know that we have a projection in our code community showing how to do this:
code.thinkgeo.com/projects/show/cancelingtrack
 
I am not sure you are using this code or using yourself code?
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

Yale, the project looks like the exact solution I’ve been looking for! Thanks! I’ll let you know how well it works…

No problem, Gregory. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale