ThinkGeo.com    |     Documentation    |     Premium Support

Handling events: OverlayDrawing, OverlayDrawn, OverlaysDrawing, OverlaysDrawn







 WinformsMap does not like too much data to draw. To reduce them I want to make some simplification trajectory of roads data. I would like to use event handlers which groups layers (and their data) to make this simplification, some data could I just skipped. 


I am using event handlers before drawing process: OverlayDrawing, OverlaysDrawing but I do not see if these functions are called. 


Api Documentation does not talk anything about how to use them and how they can be helpfull.



Pawel, 
  
 Thanks for your post and welcome you ThinkGeo Desktop Forum! 
  
 Just want to make sure which version of Desktop you are using now? 
  
 I think the OverlayDrawing, OverlayDrawn, OverlaysDrawing, OverlaysDrawn 4 events will fired very decently, can you pasted some codes out to say why it is not fired? 
  
 Sorry for the lack of the API docs now, all the 4 events naming are very close to the rule to Microsoft, so I think it is very easy to detect its usage: 
 OverlaysDrawing: Will be fired before all the Overlays to be drawn 
 OverlayDrawing:  will be fired before the Overlay to be drawn 
 OverlayDrawn : will be fired after the Overlay to be drawn. 
 OverlaysDrawn: will be fired after all the Overlays to be drawn. 
  
 Sorry for the inconvenience! 
 Any more questions just let me know. 
  
 Thanks. 
  
 Yale