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

Failed to load resource #507

Closed RawenC closed 5 years ago

RawenC commented 5 years ago

Hello, i am trying show in map .tpk file (Beirut.zip), but everytime when i changed projection (scale/center) i got some errors.

obrazek

Its looks like some image squares are not loaded, but map looks correct.

obrazek

So my question is, is it normal? or can i fix it somehow? I am using Chrome 73.0.3683.75, but have this errors on firefox too..

andygup commented 5 years ago

@RawenC the errors are annoying but shouldn't affect functionality. If I remember correctly, they are just a side effect of the async nature of the TiledMapServiceLayer.getTileUrl() method.

RawenC commented 5 years ago

Is any way how stop showing this errors with some try/catch?

andygup commented 5 years ago

You are welcome to give it a try by hosting the source code locally. The error is happening internally in the ArcGIS API for JavaScript FeatureLayer.getTileUrl() method. You could try experimenting by using a blank image url instead of void, I haven't looked at the code in a while so I'm not sure what the side-effects might be.

RawenC commented 5 years ago

Thanks for the tip, I'll try.

andygup commented 5 years ago

Closing due to no further activity.