I have been using the Mapillary-js 4.1.2 runtime in a web page to display a map and navigate through street level imagery for some time. I use the jsdelivr version.
I mostly use default viewer constructor options, with caching enabled but with the sequence UI disabled (default is enabled, not sure if this matters). The cover is disabled too.
Not sure if this is important but the problem can happen, eg., with SF downtown imagery.
In all cases when landing, caching is performed and the spatialedges event is eventually fired with status.cached = true. This seems logicial.
However, I currently observe two issues, which I am developing below.
- Very often, I get the following errors (many entries) in the Javascript console:
Origin: GraphService.ts:340
Test: Failed to cache tile data (SOME_ID). MapillaryError: Failed to fetch data
at GraphDataProvider.ts:282:22
The spatialedges event nevertheless does fire, with status.cached=true, and navigation arrows show up.
- Sometimes, navigation arrows do not show up at all, when they should. In rare instances, only one faint (low opacity) arrow shows up. Recreating the viewer from scratch using the same imageId does show all arrows, however just calling viewer.moveTo() using the same id does not cure the problem, which is very problematic.
In the Network pane of Edge, I see no errors at all, just 200 status codes. Everything seems ok. Some ‘images?…’ graph queries return 0-byte content, but still with a 200 status code. ‘images?….’ queries matching SOME_ID (as introduced above) seem to return valid content.
One thing I tried is to disable caching. This seems to solve the problem, but offers a less smooth navigation experience obviously.
Do you have any idea about could be wrong? I have a Maplibre map inset somewhere in my page that downloads coverage tiles when landing too, and this is working fine.