Syntax for pano.openNext('{node10}'); with parameters

Q&A about the latest versions
Post Reply
Fgorge
Posts: 3
Joined: Mon Mar 29, 2021 2:16 pm

I use javascript to open a new panorama using this expression :
pano.openNext('{node10}');
Works fine but I would like to open it with a specific pan angle...
I read in the Reference API :

pano.openNext(url:String,parameter:String)
Open next panorama, if the url is in the from of {nodeid} it will change the node in the tour.

I would know when using {nodeid} what is the syntax to add parameters as pan and/or tilt.

Thanks
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Here is an example:

Code: Select all

javascript:pano.openNext('{node2}',90,0,70);
This willopen node2 at 90 degrees.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply