ThinkGeo.com    |     Documentation    |     Premium Support

Cache and Dynamic Panning

  I have several questions about caching and how to use it.


I want to enable cache so that I have the Dynamic panning effect. So I have that code:


winformsMap1.StaticOverlay.ClientCache.CacheDirectory = @"c:\CacheData\";

bool isCacheEnable = winformsMap1.StaticOverlay.ClientCache.EnableCache;


 I still don't have the Dynamic Panning effect. What do I need to do to have the Dynamic Panning?


 Also, if I want to clear all the existing Layers from the winformsMap and start from fresh to add new one, I call:


winformsMap1.StaticOverlay.Layers.Clear();

winformsMap1.DynamicOverlay.Layers.Clear();


 But how do I also clear everything in the CacheDirectory? Or how do I Disable Cache after it has been enabled? Thank you.


 



Adolfo, 
  
 We used to support dynamic panning in version 3.0.184 but as we have too many cross threading issues, we removed this feature in 3.0.199 . We are still working on the multi-threading stuff and when we figured it out, the Dynamic Panning will be added back. Sorry for the inconvenience for now. 
  
 To disable the cache, you need to simply set the CacheDirectory to String.Empty.  For now we don’t have the API to clear the CacheDirectory, you need to clear it manually. That’s a good advice though and we may add it in the future version. Thanks for reminding.  
  
 Ben