So, dumb question, I know if I continue to look in the documentation I will find it somewhere, but I'm wondering how I can scale a plugin when the panorama goes to fullscreen (or, if it is already at fullscreen, to appear scaled already).
Here is the example:
http://iiswebdev.pacific.edu/cms-apps/marke…rtour-forum.asp
When you click on the Map button, the map will appear (I will eventually have little hotspots on it). What I would like, is that if the map is visible and the pano goes fullscreen, for the map to scale up. Or, for the map to be scaled up already if the pano is fullscreen when the Map button is clicked.
Here is my code for the map image and its background:
<!-- Map -->
<plugin name="map"
url="../../img/map-large-notext-rotated.png"
visible="false"
align="center"
scale="0.5"
zorder="6" />
<!-- Map background -->
<plugin name="map-bg"
url="%SWFPATH%/plugins/textfield.swf"
html=""
visible="false"
align="center"
zorder="1"
height="556"
width="549"
backgroundcolor="0x000000"
roundedge="5"
shadow="1"
borderwidth="0"
glow="4"
alpha="0.5"
scale="0.5"
/>
Display More
And for the map button:
<!-- Top button - Show Map -->
<plugin name="map-off"
url="../img/button-2-map.png"
visible="true"
zorder="2"
alpha="0.8"
blendmode="normal"
origin="righttop"
x="70"
y="4"
height="62"
width="62"
handcursor="true"
onclick="action(togglemap);" />
<plugin name="map-on"
url="../img/button-2-map-on.png"
visible="false"
zorder="2"
alpha="0.8"
blendmode="normal"
origin="righttop"
x="70"
y="4"
height="62"
width="62"
handcursor="true"
onclick="action(togglemap);" />
Display More
And the "togglemap" action:
<action name="togglemap">
set(dontshow, false);
if( plugin[map].visible == true,
set(plugin[map].visible, false);
set(plugin[map-off].visible, true);
set(plugin[map-on].visible, false);
set(plugin[map-bg].visible, false);
set(autorotate.enabled,true);
set(dontshow, true)
);
if( dontshow == false,
set(plugin[map].visible, true);
set(plugin[map-off].visible, false);
set(plugin[map-on].visible, true);
set(plugin[map-bg].visible, true);
set(autorotate.enabled,false);
);
</action>
Display More
(I know it probably wasn't necessary to post all of that code, but just in the interests of completeness.)
I know the answer is probably painfully obvious, but I am making myself crazy over it.
Thanks