Why do vector tile layers inconsistently fail to display in JS4 app?

468
0
07-13-2020 11:18 AM
AdamMesser
New Contributor II

We have two publicly-shared vector tile layers on our AGOL site that are being added into an ArcGIS for Javascript 4.13 application. The problem is that one or both of the vector tile layers will fail to load with no discernible pattern across refreshes or browsers. 

One VTL is being added to the built-in basemaps in the Basemap Gallery widget, and the other is being added as a layer in the map. To load these VTLs we are getting a token from AGOL and registering it with the Identity Manager object for tiles.arcgis.com. This seems to have made it work more often for some reason, despite the two layers being public.  No errors are reported to the browser console when this happens. Sometimes clearing the browser’s cache appears to help, but on any refresh from that point on they may fail to load, requiring another cache clear. However, that does not always solve the issue. Any ideas on the cause of this issue or way to continue troubleshooting would be appreciated.

0 Kudos
0 Replies