Control pan and autorotate from JavaScript

Q&A about the latest versions
Post Reply
carlosmossman
Posts: 4
Joined: Tue Oct 18, 2016 2:51 pm

[EDIT 2]
If these features/abilities do not exist natively, maybe I can implement them on my own.
Is an un-minified version of pano2vr-player.js available?
[/EDIT2]
-----------------------
I am trying to do the following with JavaScript:

1 - Enable/disable auto rotation based on user interaction. Is there a method in the JavaScript interface for toggling auto rotate?

2 - Retrieve a query string parameter (or hash value) from the url which corresponds to a hotspot and pan to that hotspot when the page/pano loads.
[EDIT]: I'll have an informational panel overlaying the pano that will contain a list of links, each related to a hotspot. When a link is clicked, I'll need to pan to the related hotspot... [/EDIT]

Is either of these possible? Documentation is geared primarily toward configuring these behaviors via the Pano2VR software. I need to interact with the object after it has been generated and loaded, from script.

Thanks in advance for your suggestions.
Post Reply