ThinkGeo.com    |     Documentation    |     Premium Support

Track & Measure distance

Hello,


in version 2.0 you were providing a sample (sorry, I cannot remember the name) where the user can drag a polyline or a polygon and it was displaying near the mouse cursor the line distance and polygon area ... do you remember ?


I'm trying to do the same with 3.0 and my code works in singlethread mode;

however, in multithread I'm getting an exception on the following line. The exception is about accessing to an object created in another thread.



 



LineBaseShape ls = theMap.TrackOverlay.GetTrackingShape() as LineBaseShape;

Could you provide this 2.0 sample that works in 3.0 multithread mode ?


Regards,


Patrick.




Please ignore; your code community sample DynamicTrackShapes does this job. 
  
 Patrick.

Patrick, 
  
 It’s awesome you find the answer by yourself. Code community is absolute a great place where you can find many helpful samples, and still more and more samples are added everyday . 
  
 Thanks, 
  
 Ben