ThinkGeo.com    |     Documentation    |     Premium Support

StaticOverlay vs DynamicOverlay

Can anyone explain the difference between the StaticOverlay and DynamicOverlay?


I see in the examples that the DynamicOverlay isn't used anywhere... so I can't deduce how it should be used :/ Does the mapping control work differently with the layers inside these overlays?



So in this post: 
  
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/11/aft/4771/afv/topic/Default.aspx 
  
 So I saw this: 
  
 “Oh, can you tell me what the difference is between a dynamic and static layer? I have assumed (hopefully correctly) that a dynamic layer would be used to represent a layer that is refreshed periodically (like to display a moving vehicle on a road). While a static layer displays data that changes infrequently or not at all.” 
  
 Which was answered like so: 
  
 “About Static layer and Dynamic Layer, you have a good understanding. One small supplementary point about the detail implementation (though I think you already know) is that Dynamic Layers are always drawn on top of the static Layers (if you are using MapEngine to draw). Also, we can draw static Layers or DynamicLayers separately, which let us refresh the only part which might change to improve the performance.” 
  
 Is a “StaticLayer” here the same as a “StaticOverlay” in DesktopEdition? The only thing I see that can refresh them separately is the AutoRefreshInterval. I can’t see a manual way to refresh layers individually… or a manual way to refresh the overlay only. 
  
 Perhaps i’ve missed the boat completely here.

Brendan, 
  
 Yes, the differences are almost the same as the differences between StaticLayers and DynamiLayers in MapEngine. We now can refresh the DynamicOverlay only with the method winformsMap1.RefreshDynamic(), and we will provide winformsMap1.RefreshStatic() (I’m not sure about the final name) later. DynamicOverlay will always be drawn on top of StaticOverlay, and if we set CustomOverlay, both of the static and dynamic overlays will be ignored. 
 By the way, the property “AutoRefreshInterval” is not available now, we will implement it in the coming edition. 
  
 Ben. 


Thanks for that. Much clearer now.

Any more queires just let us know. Brendan. 
  
 Ben