Hi all!
I have made google maps slide out by having a button (which is a child element) act as the controller. It all works! Apart from that I have google maps height at 100% to fill the frame. Doing this the size of the child element also changes size, depending on the size of the window. the bigger the window, the smaller the image. I am confused! How do i fix this. I could have the map at a fixed size "410" but even then the button is stretched. I have tried lots of things and searches without any acceptable result.
I also have the map on a higher z order than the button, yet the button displays on top.
Any Ideas?
http://www.vrvenue.net/examples/bay_hote…rnwall-uk_.html
<plugin
name="logo"
url="the_Bay_logo.jpeg"
keep="true"
visible="true"
enabled="true"
handcursor="false"
capture="false"
zorder="1"
alpha="1.00"
blendmode="normal"
smoothing="true"
align="leftbottom"
edge="centre"
x="127" y="80"
ox="0" oy="20"
rotate="0"
width="" height=""
scale="1"
scale9grid=""
crop=""
mask=""
onloaded=""
onover=";"
onhover=""
onout=";"
ondown=""
onup=""
onclick=""
/>
<security>
<allowdomain domain="maps.google.com" />
</security>
<plugin name="googlemaps"
url="googlemaps.swf"
keep="true"
children="true"
blendmode="normal"
zorder="6"
x="-250"
y="0"
width="250"
align="topright"
height="100%"
visible="true"
onloaded=""
onover="action(slide_action_2_in);"
onhover=""
onout="action(slide_action_2_out);"
border="true"
bordercolor="000000"
key="ABQIAAAAIPBMz07hMD7cQimqzIVcoBTyddqcOtaHsHfAfyLpivb7FqZtBBTZg_EpgPwFgFItAlqyEJO-gsGkow"
lat="50.412969"
lng="-5.107216"
zoom="16"
maptype="SATELLITE"
dragging="true"
scrollwheel="true"
continuouszoom="false"
onmapready="load_bay-hotel-newquay-cornwall-uk_();"
>
<radar visible="true" size="100" alpha="0.33" fillcolor="0xFFFFFF" fillalpha="1.0"
linecolor="0xFFFFFF" linealpha="0.0" linewidth="0.0"
glow="true" glowcolor="0" glowwidth="4" glowstrength="3"
behindspots="true" dragable="true"
/>
<zoomcontrol visible="true" anchor="topleft" x="2" y="2" hasscrolltrack="false" />
<!-- map spots -->
<spot name="The Bay Hotel And Spa"
active="true"
lat="50.412254" lng="-5.106693" heading="290"
onhover="showtext(The Bay Hotel);"
onclick="load_bay-hotel-newquay-cornwall-uk_();"
/>
</plugin>
<action name="load_bay-hotel-newquay-cornwall-uk_">
update_map_spot(The Bay Hotel And Spa);
load_map_pano('bay-hotel-newquay-cornwall-uk_.xml');
</action>
<!-- load and update map actions -->
<action name="update_map_spot">
plugin[map].activatespot(%1);
plugin[map].pantospot(%1);
</action>
<action name="load_map_pano">
loadpano('%CURRENTXML%/%1', null, MERGE, BLEND(1));
</action>
<action name="slide_action_2_in">
tween(plugin[googlemaps].x,0,distance(250,1.5),linear);
</action>
<action name="slide_action_2_out">
tween(plugin[googlemaps].x,-250,distance(250,1.5),linear);
</action>
<plugin
name="maplogo"
url="mapbutton.png"
keep="true"
visible="true"
enabled="true"
handcursor="true"
capture="true"
zorder="4"
alpha="0.8"
parent="googlemaps"
blendmode="normal"
smoothing="true"
align="topright"
x="150" y="10"
ox="0" oy="0"
rotate="0"
width="64" height="90"
scale="1"
scale9grid=""
crop=""
mask=""
onloaded=""
onover="action(slide_action_2_in);"
onhover=""
onover="tween(alpha,1);"
onout="tween(alpha,0.8);"
/>