<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a cross-browser way to store tiles in web storage? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456275#M42159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to get either localForage or Dexie to even be recognized in my app.&amp;nbsp; I added the scripts to my pages, but whenever I tried to reference them, they showed up as undefined.&amp;nbsp; I wonder if something is going on because I'm using VS2015 or because of dojo being used in the app.&amp;nbsp; It just seems so strange...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 22:14:15 GMT</pubDate>
    <dc:creator>DaveSouthern</dc:creator>
    <dc:date>2016-01-28T22:14:15Z</dc:date>
    <item>
      <title>Is there a cross-browser way to store tiles in web storage?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456271#M42155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the following page in the ArcGIS javascript samples that supposedly gives an example of how to store tiles locally:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/exp_webstorage.html"&gt;https://developers.arcgis.com/javascript/jssamples/exp_webstorage.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says that it doesn't work with IE - and I tested it and they are right - it doesn't work with IE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know of an approach to storing tiles locally that does work with IE?&amp;nbsp; In other words, is this really a problem with IE or is the example just not robust enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 21:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456271#M42155</guid>
      <dc:creator>DaveSouthern</dc:creator>
      <dc:date>2016-01-26T21:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a cross-browser way to store tiles in web storage?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456272#M42156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a library that you may want to look into to assist with offline mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/offline-editor-js" title="https://github.com/Esri/offline-editor-js"&gt;Esri/offline-editor-js: ArcGIS JavaScript library for handling offline editing and tiling.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The offline editor does a good job of storing tiles locally (storage limits do apply).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your question above, it's always IEs fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE8+ should support localStorage &lt;A href="http://caniuse.com/#search=storage" title="http://caniuse.com/#search=storage"&gt;http://caniuse.com/#search=storage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sample that uses PouchDB to do offline work, not using tiles, but similar concept. PouchDB will handle browser support for you and wrap storage around it's own API.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/esri-pouchdb" title="https://github.com/odoe/esri-pouchdb"&gt;odoe/esri-pouchdb: Sample App using PouchDB... - GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 22:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456272#M42156</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2016-01-26T22:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a cross-browser way to store tiles in web storage?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456273#M42157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for taking the time to respond.&amp;nbsp; As you say, IE is the problem - offline-editor.js does not support IE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to look at the PouchDB example, but the only example they had gave a 404 error when I clicked on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping one of these would work out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some experimenting yesterday and IE does appear to place a layer into local storage - at least, according to the f12 tools it does.&amp;nbsp; But I can't find it on disk to see what is actually there, and when I try to pull it out of storage later all that comes out is a string 'object [Object]' - or something like that.&amp;nbsp; So I don't know what's going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456273#M42157</guid>
      <dc:creator>DaveSouthern</dc:creator>
      <dc:date>2016-01-27T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a cross-browser way to store tiles in web storage?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456274#M42158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One tip I can give is that web storage data should be strings, so you can do JSON.stringify(data). PouchDB should handle this, but if you are getting the 'object [Object]' response, you may need to stringify the data yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated the link in the README there but here it is.&lt;/P&gt;&lt;P&gt;&lt;A href="http://odoe.net/blog/taking-offline/" title="http://odoe.net/blog/taking-offline/"&gt;Taking it offline - odoenet&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 17:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456274#M42158</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2016-01-27T17:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a cross-browser way to store tiles in web storage?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456275#M42159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to get either localForage or Dexie to even be recognized in my app.&amp;nbsp; I added the scripts to my pages, but whenever I tried to reference them, they showed up as undefined.&amp;nbsp; I wonder if something is going on because I'm using VS2015 or because of dojo being used in the app.&amp;nbsp; It just seems so strange...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 22:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456275#M42159</guid>
      <dc:creator>DaveSouthern</dc:creator>
      <dc:date>2016-01-28T22:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a cross-browser way to store tiles in web storage?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456276#M42160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there's something screwy going on with my system.&amp;nbsp; I tried the following sample code to work with IndexedDb directly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.OIDBTransaction || window.msIDBTransaction, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbVersion = 1; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; request = indexedDB.open(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"elephantFiles"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, dbVersion);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;But when I ran it, I got an error saying that indexedDB was undefined.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-cross-browser-way-to-store-tiles-in-web/m-p/456276#M42160</guid>
      <dc:creator>DaveSouthern</dc:creator>
      <dc:date>2016-01-29T15:03:24Z</dc:date>
    </item>
  </channel>
</rss>

