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

Default Viewing Angle and VirtualTourPlugin #1360

Closed
Rusachok opened this issue Jul 8, 2024 · 3 comments
Closed

Default Viewing Angle and VirtualTourPlugin #1360

Rusachok opened this issue Jul 8, 2024 · 3 comments

Comments

@Rusachok
Copy link

Rusachok commented Jul 8, 2024

Describe your problem

I use Photo Sphere Viewer and VirtualTourPlugin for my tours (by the way - thank you for the excellent solution).

I can set the viewing angle only for the first panorama with

defaultYaw
defaultPitch

But I want to set first view for each panorama. I need to set defaultYaw for each node.

Is it possible?

Online demo URL

No response

Photo Sphere Viewer version

5.8.2

Plugins loaded

No response

Additional context

No response

@mistic100
Copy link
Owner

mistic100 commented Jul 8, 2024

By default the viewer will keep the current orientation after clicking the link., implying that every panorama must have the same orientation.
If this is not the case your should set panoData.poseHeading on each node to correct the orientation.
This is done in the example https://photo-sphere-viewer.js.org/plugins/virtual-tour.html#example

If however you don't want each panorama to have the same orientation, use transitionOptions global configuration poseHeading has a function, it can returns rotateTo (click on "See details" for code example)
https://photo-sphere-viewer.js.org/plugins/virtual-tour.html#transitionoptions

@Rusachok
Copy link
Author

Rusachok commented Jul 8, 2024

Thanks!

@mistic100
Copy link
Owner

Please close the issue if the question is answered.

@Rusachok Rusachok closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment