This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
ImageLoader.load fails if URL is relative path and image URL is no-cache #204
Labels
Stale
Stale - Subject to be deleted
I noticed a breaking change in R9 to v0.11. Infospots sometimes dont appear on a scene if they use a relative image path and that image path has not been downloaded previously or is not cached. I'm on latest master.
I typically load hotspots like so:
Note the relative url.
When we get to ImageLoader.load, we try to find the url in cache like so:
For some reason, if I have a scene with three or more hotspots, all with the same relative URL, the second hotspot never shows on the panorama if I'm loading the viewer instance for the first time. (Page refresh). I've tried many scenes and many scenarios. The panorama has the object as a child, but it just doesn't show, even when I try to
show()
it.If i'm setting to the scene and I've already downloaded the asset, there is no problem.
It's something to do with a cached image.
My solution is to replace:
with:
I'm happy to make a pull request if you want to give guidance here. I will work on an example when I have a moment. Otherwise, feel free to close this issue.
Thank you,
Clayton
The text was updated successfully, but these errors were encountered: