Page 1 of 1

Floorplan to start open deep-linking

PostPosted: Mon Aug 22, 2016 7:09 am
by Sean King
My client would like to send a URL of his tour in an email with the floor plan open.

However, he still wants the tour in his homepage to start with the floor plan closed.

Is there any way to add something to the end of the URL of his tour, so that his tour starts with the floor plan open?

Sort of like when you add deep links to the URL to start on a specific panorama, ?s=pano31&h=0.0003&v=0.0000&f=90.0000

But instead the Information at the end of the URL would start the tour with the floorplan open.

Thanks for the help.

Re: Floorplan to start open  [SOLVED]

PostPosted: Mon Aug 22, 2016 1:50 pm
by 360-compunics-com-ni
Can be done with an additional function that looks for an "url-switch", lets say: "fpopen=true" on startup.
The URL to open the floorplan then would look like: ?s=pano31&h=0.0003&v=0.0000&f=90.0000&fpopen=true

Code: Select all
<krpano>
<events name="fpshowEvent" keep="true" onTourStart="if(fpopen,showFloorplan(); );" />
</krpano>


That code can be added to your project via the"Include of a XML file"-additional plugin, to have it permanent over rebuilds.

Re: Floorplan to start open

PostPosted: Thu Aug 25, 2016 6:25 am
by Sean King
Thanks for the help.

Regards,