The easiest thing to do is to make a a getUrl function on the layer, then send the request PG and store the url in a localstorage, and sent the url back to OL, next time it will call it, you check your local storage, to see if it saved, and if it is, give OL the local path the tile, else give the server url.
-- Med venlig hilsen / Kind regards Tue Topholm Sugee Tlf: +45 32 13 32 32 W: http://www.sugee.dk 22. mar. 2012 16.30 skrev Steve Nelson <[email protected]>: > Phonegap recently added a download method to their File object. > > http://docs.phonegap.com/en/1.5.0/phonegap_file_file.md.html#FileTransfer > > The advantage of this is there is no disk space limit (as far as I know) > which the "storage" method has. I want to build this caching technique into > openlayers. Anyone want to help? > > Steve > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
