hello everyone,
How to close the googlemaps all of the screen,thanks
for example,look at the picture under these words
there is two parts on the picture,left and right
i want to click the red point and into the others panoramas,
at the same time ,to close the googlemaps.
but now i can change the right part to the others panorama,but the googlemap still on the left
how can i show the result which i want.
thanks
Code
<krpano>
<events name="localcheck" onxmlcomplete="copy(plugin[map].url,plugin[map].tempurl);"/>
<textstyle name="DEFAULT" font="Arial" fontsize="14" bold="true"
textcolor="0"
background="false" backgroundcolor="16777215" border="false" bordercolor="0"
alpha="1" blendmode="layer" effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);"
origin="cursor" edge="bottom" textalign="center" xoffset="0" yoffset="-3" showtime="0.1"
/>
<!-- pano area -->
<area x="25%" width="100%" y="0" height="100%" />
<!-- hide map button -->
<plugin name="showmap"
keep="true"
url="control.png"
align="leftbottom"
onclickA="set(state,'A'); tween(plugin[map].x,-25%); tween(area.x,0%); tween(area.width,100%);"
onclickB="set(state,'B'); tween(plugin[map].x,0%); tween(area.x,25%); tween(area.width,100%);"
onclick="if(state == 'A', onclickB(), onclickA() );"
/>
<!-- google map (the url will be set in the "onxmlcomplete" event after the 'haveexternalinterface' check) -->
<plugin name="map"
parent="STAGE"
tempurl="googlemaps.swf"
url=""
keep="true"
blendmode="layer"
align="leftbottom"
x="0%"
y="0"
width="25%"
height="100%"
visible="true"
key="ABQIAAAA2c--4Vth66ePXVcVzlhLyBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQser8zYS3pHFBZtNof1k5XKvSUmw"
lat="32.684622"
lng="119.229937"
zoom="18"
maptype="SATELLITE"
dragging="true"
scrollwheel="true"
continuouszoom="false"
onmapready="load_korfustadt_altefestung_oben();"
>
<radar visible="true" size="300" 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" />
<spotstyle name="DEFAULT" activeurl="mapspot_active.png" edge="bottom" x="0" y="0" shadow="true" />
<!-- map spots -->
<spot name="korfustadt_altefestung_oben" active="true" lat="32.684622" lng="119.229937" heading="255" onhover="showtext(天使宝贝母婴坊);"
/>
</plugin>
<!-- 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>
<!-- load pano actions -->
<view hlookat="25" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120"/>
<preview url="panos/outdoor.tiles/preview.jpg" />
<autorotate enabled="true" waittime="0" accel="1.0" speed="3" horizon="0.0" tofov="off" />
<image>
<cube url="panos/outdoor.tiles/pano_%s.jpg" />
</image>
<!-- place hotspots here -->
<hotspot name="spot1" url="pfeil1.png" ath="97" atv="4" scale="0.2" zoom="true"
alpha="0.7"
onover="tween(alpha,1);tween(scale,0.4);"
onout="tween(alpha,0.7);tween(scale,0.2);"
onclick="load_map_pano('AngelBaby.xml');"
/>
<action name="closeshowmap">
if(plugin[showmap].enabled,
set(plugin[showmap].enabled,false);
tween(plugin[showmap].alpha, 0.0, 0.5, default, removeplugin(showmap));
);
</action>
</krpano>
Display More
thanks a lot!