I am trying to integrate a loading indicator into a custom Marzipano viewer. We use only equirectangular image sources, and it seems crucial to have a loading indicator for this type of source (single large src), unlike multi cube tiles of smaller size, which will load faster/progressively into view.
I have already looked into the below post, but the logic doesn't apply. First of all, the reference to
layer.visibleTiles(tileList); does not apply to equirectangular sources, where visibleTiles will always return max
ONE visible tile.
https://groups.google.com/forum/#!msg/marzipano/xszV2UIxeHY/QTiMqS2EBAAJ
I have also setup textureStore.addListener('textureLoad', function(){}), which allows us to detect WHEN a texture is loaded. However, what's the point of this if we can't detect when/if a texture STARTS loading? We might have 3-4 source levels with increasing image dimensions, but browser (depending on screen and zoom) may only load 1-2 of the sources. How are we to initiate a loading indicator if we do not know when Marzipano starts to load a texture? In cases with small screens, it's not even loading more textures than the first pinned level. The textureLoad event does not help if we do not know how if new textures are being loaded or when they start loading.
What I would have liked, was a textureStartLoad event. Or am I missing something?
Thanks.