Hi Paula, you can simply remove the HTML element with a 360 product view in progress from DOM (i.e delete viewer's html element instead), if user can't wait for it to finish loading. It's not the cleanest, but will work I think.
Also, the viewer has api.reload function that allows loading other views "in-place" (without needing to delete anything) by passing xml config as the first parameter in the call. You do need to wait for the first one to load though to get the API but then you can call "reload" at any time, i.e even if the next view is not loaded yet.
And lastly, I don't think we test this scenario but if you do viewer initialization like this (instead of jQuery plugin):
Code: Select all
var rotator = WR360.ImageRotator.Create('wr360PlayerId');
rotator.licenseFileURL = 'license.lic';
rotator.settings.configFileURL = '...;
rotator.settings.graphicsPath = 'imagerotator/html/img/basic';
rotator.settings.alt = '360 degree view - ...';
rotator.settings.googleEventTracking = false;
rotator.settings.responsiveBaseWidth = 0;
rotator.settings.responsiveMinHeight = 0;
...you can call rotator.getAPI() at any time to get the same API object. Not sure it will delete everything cleanly if you call it during loading but it's something to consider.