Page 1 of 1

Turn off and on multiple hotspots while viewing tour

PostPosted: Thu Mar 21, 2013 6:58 am
by goshiota
Hi there,

Is there a way to build a tour that has a button, or a hotspot, that will show/hide all the hotspots in a scene? The purpose would be to provide the viewer the option to view the scene with out the obstuctions of hotspots, but be able to show them again once they are ready to click to view more things.

Thanks,
Jeremy

PostPosted: Thu Mar 21, 2013 7:42 am
by bdd
Hello,

The 1.8 version of PTP does not have such button, but it is easy to add it in the generated code as each panorama description (each XML file containing the panorama index number) already contains an action to hide or show the hotspots it contains : hidepanospotsaction and showpanospotsaction.

GĂ©rald

PostPosted: Thu Mar 21, 2013 9:02 am
by leifs
Put this into the virtualtour.xml file:

<plugin name="hotspotonoff" url="virtualtourdata/graphics/combobox.swf" preload="true" keep="true" align="rightbottom" x="10" y="20" rowcount="2">
<item name="on" caption="Hotspots On" onClick="showpanospotsaction();"/>
<item name="off" caption="Hotspots Off" onClick="hidepanospotsaction();"/>
</plugin>

it needs the combobox.swf

leifs

PostPosted: Thu Mar 21, 2013 11:31 pm
by goshiota
Okay, cool!! Thanks for the suggestions. I have experience modifying xmls so I'll keep my fingers crossed that I get it to work.

Thanks again!

--Jeremy