ThinkGeo.com    |     Documentation    |     Premium Support

How to shut off new dynamic cache

I am wondering how to shut off the new caching feature. It seems to be a really nice feature, but unfortunately with the new release I am having performance issues when compared to the older version and I can see why it may be the new caching system. I am not in a snap-to-zoomlevel-scenario, so I think the users will rarely if ever bump into situations where the cache is hit.


 


I tried the following but it did not seem to work:



map.TemporaryCacheDirectory =



Nothing



Nelson, 
  
 You can change the property in overlay to disable it. 
  
 overlay.LocalCache = LocalCacheMode.Disabled; 
  
 Thank, 
 ThinkGeo Support 


If I do this, then when I pan the map or zoom in and out I lose anything smooth about it, it seems… is there any where to get to the old panning behavior??

Nelson,  
  
 We thought the new panning is better as it has Dynamic Panning, auto Cache and seems more responsive. We designed the panning from the scrach and I’m afraid it is difficult to go back to the old panning with this version. If the default ZoomLevels is not proper for you can you create your own ZoomLevelSet and still turn on the snapping, in this way you will have both the high performance and a proper extent for displaying. Also I will write down your requirement to see if we will provide an option to let user go back to the old style of panning. 
  
 Thanks for reporting! 
  
 Ben 
  


It isn't that the ZoomLevelSet is insufficient, it is just kind of jarring to try to track shape zoom and not have your trackshapes appear to be respected as the new extent. Conversely, it is a really nice thing to be able to track zoom and get that feeling of zooming right down to your request.I feel like adding a 100 level ZoomLevelSet would be slightly cumbersome....


Also, the performance gains of the new system are very nice, but it seems like they would be better suited for a web app in our scenarios rather than in our scenario. That's all.


I'll give an expanded ZoomLevelSet a shot. Thanks.



I realistically can't prepare and apply 100 zoom levels for every single layer that is being added programatically or dynamically. Also, how am I supposed to apply styles from zoomlevel 1 to zoomlevel 100 if I am only allowed to apply until 20? 



We have already missed our deadline to our customer and now with all the new revamping in this new version of the API... I think we are going to have to stick to the previous interim release.............. To much experimenting when we should be well into our beta and into RC....


It's exciting to see the new implementations and at the same time it couldn't come at a worse time......



Nelson.  
  
 You are right the apply until is only to 20, which cannot work with custom zoomLevels, thanks for bringing it to us. I’m very sorry you cannot take the advantage of the new release, we will try our best to imrprove it and solve your problem. I will let you know when we have something. 
  
 Thanks, 
  
 Ben