Monday, January 17, 2011

Map Cache

As stated previously, RasterMap has an internal cache. If the map tile is in the cache already, RasterMap get the map tile from the cache directly, this will speed up map update.
The size of cache and turn on/turn off cache can be changed with class MapConfiguration.
Also remember the cache is tempory, the cache is cleaned after the application exits. If you need to store the cache persistently, so that next time user starts the application, you can display the map last time user visits. You can use saveMapCache and restoreMapCache methods to save and restore cache in a file.

No comments:

Post a Comment