So I forked/cloned cesium and started working on implementing offline support for tiles loaded into the map. I have implemented offline support for metadata which comes from Bingmaps.
Now I'm working on saving images into browser storage.
Would it be a good idea to stick the images inside an HTML5 Canvas element and using toDataURL to get the data from the image and storing it as JSON inside web storage? (ref: https://developer.mozilla.org/en-US/docs/DOM/HTMLCanvasElement)
If not, is there something else anyone would like to suggest?
Here's my github clone, for reference: https://github.com/afahim/cesium