Have you played around with the new CacheRead and CacheWrite controls in the upcoming 2.12 release? They already do this for you (offline tile caching), but the tiles are saved to HTML5 local storage whose meager quota of 5-10mb is easily surpassed. I tried this with my MapGuide tiled maps and it could only stash 50-60 tiles before hitting the localstorage limit.
Perhaps modifying the existing CacheRead and CacheWrite controls to re-route these tiles to your file system instead of window.localStorage would be the simplest approach. Or a cleaner way, refactor the CacheRead and CacheWrite controls for a pluggable storage backend. - Jackie -- View this message in context: http://osgeo-org.1560.n6.nabble.com/caching-tiles-with-phonegap-tp4645164p4647437.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
