I (copy the
code into the tour.xml directly after der "<action
name="startup">"
if you try this link
http://360grad-touren.de/00/04/index.html#p=scene_002
then is the active Spot in the map the Spot from the scene_001. If i try
"f5", then is the active Map-Spot the right.
It would be great, that the right Map-Hot-Spot is active by entering the Pano after
clicking the link (without “F5” and any other action).
Thanks in advance
Code
<krpano version="1.0.8.14" onstart="startup();">
<include url="xml/actions.xml" keep="true"/>
<include url="xml/jaddress.xml" keep="true"/>
<include url="xml/plugins.xml" keep="true"/>
<include url="xml/style.xml" keep="true"/>
<include url="xml/bingmap.xml" keep="true"/>
<include url="skin/androidskin.xml" devices="android+flash" />
<!--************** Kontextmenü ****************************************************************-->
<contextmenu>
<item name="item_0" caption="© 360Grad-Touren.de" onclick="openurl(http://www.360Grad-Touren.de)"/>
<item name="normal_view" caption="Normalansicht" onclick="action(actionviewnormal)" separator="true"/>
<item name="fisheye_view" caption="Fisheye-Ansicht" onclick="action(actionviewfisheye)"/>
<item name="architectural_view" caption="Architektonische Ansicht" onclick="action(actionviewarchitectural)"/>
<item name="stereographic_view" caption="stereographische Ansicht" onclick="action(actionviewstereographic)"/>
<item name="pannini_view" caption="Pannini-Ansicht" onclick="action(actionviewpannini)"/>
<item name="little_planet_view" caption="Ansicht kleiner Planet" onclick="action(actionviewlittleplanet)"/>
</contextmenu>
<!-- disable the default progress bar -->
<progress showload="true" showwait="true" />
<action name="startup">
<!-- instead of using "loadscene" to load the first scene, use the action ja-start(). This will get the scene from the URL or, if none is defined, load the scene passed in the first parameter.
THIS IS ONLY FOR THE FIRST SCENE LOAD! Afterwards, you can use loadscene() as usual -->
<!--loadscene(get(scene[0].name), null, MERGE);-->
ja-start(get(scene[0].name));
activateSpot(get(xml.scene));
</action>
<events name="mapchange" keep="true" onnewpano="activateSpot(get(xml.scene))"/>
<action name="activateSpot">
plugin[panotourmaps].activatespot(%1);
plugin[panotourmaps].pantospot(%1);
</action>
<scene name="scene_001" title="001" onstart="" thumburl="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />
<preview url="panos/001.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="555" progressive="false">
<level tiledimagewidth="3051" tiledimageheight="3051">
<cube url="panos/001.tiles/l3_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1526" tiledimageheight="1526">
<cube url="panos/001.tiles/l2_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="763" tiledimageheight="763">
<cube url="panos/001.tiles/l1_%s_%0v_%0h.jpg" />
</level>
<mobile>
<cube url="panos/001.tiles/mobile_%s.jpg" />
</mobile>
<tablet>
<cube url="panos/001.tiles/tablet_%s.jpg" />
</tablet>
</image>
<!-- place hotspots here -->
<hotspot name="spot1" style="hotspot_ani_white"
ath="185"
atv="0.9"
zoom="false"
onhover="showtext(Föhringer Alle in Richtung Süden,tooltip)"
onclick="mainloadscene('scene_002')"
/>
<hotspot name="spot2" style="hotspot_ani_white"
ath="-91.21"
atv="0.29"
zoom="false"
onhover="showtext(Hofäckerallee Ecke Voglbachlweg,tooltip)"
onclick="mainloadscene('scene_016')"
/>
</scene>
<scene name="scene_002" title="002" onstart="" thumburl="">
.
.
.
Alles anzeigen