Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore after destroy scene #361

Open
mhandze opened this issue Mar 16, 2017 · 3 comments
Open

restore after destroy scene #361

mhandze opened this issue Mar 16, 2017 · 3 comments

Comments

@mhandze
Copy link

mhandze commented Mar 16, 2017

Hello,

How can I restore pano to display on page (keeping all setting like hotspots etc.) after destroying with "destroy" method ? Or maybe there is better way to "unload" and "load" 3D panos ?

It's all because of webgl limit of gl object to display at once on page and I have 20+ panos to manage.

@mpetroff
Copy link
Owner

As the name suggests, the destroy method completely removes the viewer, so there's no way to restore besides creating a new viewer with the same configuration.

Have you considered configuring Pannellum with the different panoramas as different scenes? The scene can be changed using the API's loadScene method, so the different panoramas don't need to be linked into a tour via hot spots—external controls such as a set of thumbnails could be used to switch between panoramas if desired.

@mhandze
Copy link
Author

mhandze commented Mar 21, 2017

@mpetroff Currently I have it working by destroying and then reloading whole set, but "autoload" is true only for the ones I want to display.

@tang086
Copy link

tang086 commented Aug 23, 2018

This is what I need just now. It's great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants