ThinkGeo.com    |     Documentation    |     Premium Support

API changes doc

Hi,


Just downloaded MapSuite Desktop Evaluation Edition 3.0.304, upgraded my product which was developed using MapSuite Desktop Edition 3.0.255, got 36 errors and 68 obsolete warnings, things are obsoleted so fast!


Where can I find the latest API change Log? Can't find the TrackEnding/TrackEnded events, what are their replacement?


Rose



Rose, 



We did lots of changes and enhancements in the new version and you will have more control on the map. 



We added a TrackOverlay to do things related with tracking and you can find TrackEnding/TrackEnded events in 

winformMap1.TrackOverlay.TrackEnding 

winformMap1.TrackOverlay.TrackEnded 



Here’s the API change log gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5774/afv/topic/Default.aspx, it’s in Forums > Map Suite 3.0 > News and Announcements 



Thanks, 

ThinkGeo Support 

 



Rose, 
  
 My first task this morning was to see what changes I had to make to get an EditOverlay/TrackShapes demo working and I was also looking for TrackEnding/TrackEnded.  I initially found TrackEnding in Properties but the event does not appear to fire.  The documentation says this is an obsolete and to use TrackEnded.  (Unlike many of the other obsolete methods related to EditOverlay and TrackShape, this one didn’t cause a compile error.)  I couldn’t find TrackEnded in Properties so I added it via code at the program startup.  (I pasted that code below in case you need to see how I did it.)  When I finish drawing shapes the event fires, no matter what user action finishes the drawing: mouse up, double click, etc.  It looks like one of the properties of TrackEndedTrackInteractiveOverlayEventArgs (type that without missing a letter!) is the actual shape, which should be useful since in the previous version of the demo I was going back into the EditLayer’s InternalFeatures and pulling it out to add it to an InMemoryFeatureLayer. 
  
 //Event handling code 
  
        private void TrackEnded(object sender, TrackEndedTrackInteractiveOverlayEventArgs e) 
         { 
             MessageBox.Show(“TrackEnded”); 
         } 
  
  // Load method 
 winformsMap1.TrackOverlay.TrackEnded += new EventHandler<TrackEndedTrackInteractiveOverlayEventArgs>(this.TrackEnded); 
  
 Allen

Oh yes, in case you didn’t figure it out yet, I was also forced to move all the TrackShape processing from the EditOverlay to the TrackOverlay, just like Lee noted above.

Thanks for sharing, Allen. :)