ThinkGeo.com    |     Documentation    |     Premium Support

Memory issue

hello all,


I use InMemoryBitmapTileCache to improve my Map pan speed.


 InMemoryBitmapTileCache bitmapTileCache = new InMemoryBitmapTileCache();

  worldOverlay.TileCache = bitmapTileCache;


can i set it's the maximum amount of memory? I don't want to the component occupy almost memory...and no release.


it causes computer operation slowly!

 


 


 



Carol, 
  
 Try following property MaximumTilesCount , it determines the maximum count kept in memory. 
  
 Any more questions just feel free to let us know. 
  
 Thanks. 
  
 Yale 


Thanks for your reply, Yale 
 Just make sure, …What is the Unit of the maximum tiles count? 
 memory Map count? Or set Memory usage?? 
  


Carol, 
  
 Thanks for your reply. 
  
 The maximum tiles count is the maximum number of tiles can be stored in the memory. If the number exceed, it will remove those tiles firstly stored.  
  
 For example, if the number is set to 1000, and each tile will take up 256kb at maximum, so the maximum memory is 250MB, while in fact it will much less because each tile will take much less memory comparing to its maximum case. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale