Esri / offline-editor-js

ArcGIS JavaScript library for handling offline editing and tiling.
http://esri.github.io/offline-editor-js/demo/
Apache License 2.0
159 stars 142 forks source link

Uncaught TypeError: onerror is not a function at FileReader.<anonymous> (offline-tpk-src.js:2427) #504

Closed kgloveyou closed 6 years ago

kgloveyou commented 6 years ago

Expected behavior

We can only help you if we're able to reproduce the behavior you describe above. Please provide:

  1. What operating system, browser and browser version are you using? win7,chrome 63.0.3239.108
  2. Steps to reproduce the behavior
  3. A link to an app where we can carry out those steps (either our example pages, your publicly facing app, JSFiddle, JSBin, etc)
  4. Relevant code snippet(s) (only if not easily obtained from the above link)
andygup commented 6 years ago

@kgloveyou Can you confirm you are trying to use an 11 Gigabyte TPK file? If you are working with TPKs that large you'll need to use one of our native Runtime SDKs. Maximum "recommended" TPK size for this library are 50MB - 100MB for mobile browsers and potentially up to 300MB for offline laptop browsers.

Reference: https://github.com/Esri/offline-editor-js/wiki/FAQ#how-much-data-can-you-store-with-the-library

kgloveyou commented 6 years ago

@andygup Thanks! I'm going to develop a mobile app using arcgis for js.So,how to store the offline map data is a problem for me. I have tried a tpk about 500M ,it works OK.But,when browsing a tpk file about 11G,I got the error. Is there any solutions for storing offline map data in developing mobile app by arcgis for js?

andygup commented 6 years ago

Closing. Feel free to reopen if needed.