Storing web tiles using local storage and cross-origin-resoure sharing

570
1
11-19-2012 06:41 AM
ThomasLaue
New Contributor II
Hello,

I have had a look at the "Tiles in local storage" showing how to store map tiles in the local browser cache using the new HTML 5 possibilities. However, this example is using a proxy page to overcome the cross origin domain limitation. I would be interested in learning whether it is possible to realize the same behavior without using a proxy page for instance by applying the "HTML 5 Cross-Origin Resource Sharing" feature.

Thank you for any hint!

Best regards

Thomas
0 Kudos
1 Reply
JeffJacobson
Occasional Contributor III
Note that the browser's local storage capacity is limited.  In that sample the local storage fills up quite quickly. (You can see this using the debugging tools in Chrome or using Firebug with Firefox.  Both are accessed using the F12 key.)

In order to take advantage of CORS, both the web browser and the ArcGIS Server will also need to support it.  The ArcGIS JavaScript API will actually use CORS if it is possible, and fall back on other methods if not.  This page describes this in more detail: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_esri_request.....
0 Kudos