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
Hi,
OpenLayers 2 has some support for storing tiles offline:
https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Control/CacheRead.js
However, most browser local storage is limited to about 5MB, which means you can't store many tiles in it. At Camptocamp we're using Cordova (formally PhoneGap) to build a native application as a workaround this limitation.
Regards,
Tom
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.