Hallo,
habe eine Tour mit Map-Einbindung. Unter flash funktioniert alles wunderbar. Aber mit HTML5 erscheint die Fehlermeldung: Fatal error - xml parsing failed
Habe den code durch einen online xml Tester gejagt. Keine Fehler.
KRPano version: 1.17
Vielen Dank für eure Hilfe
Code
<krpano>
<layer name="map" url="map.png" keep="true" align="leftbottom" x="16" y="16" width="316" height="222"
handcursor="false"
scalechildren="true"
onclick="closemap();"
/>
<plugin name="radar" maskchildren="true" devices="html5" />
<plugin name="scene1" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="310" y="100" zorder="2" onhover="showtext(Wohnzimmer);" onclick="loadscene(scene1, null, MERGE, BLEND(1));" />
<plugin name="scene3" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="150" y="520" zorder="2" onhover="showtext(Dachterrasse);" onclick="loadscene(scene3, null, MERGE, BLEND(1));" />
<plugin name="scene2" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="480" y="440" zorder="2" onhover="showtext(Küche);" onclick="loadscene(scene2, null, MERGE, BLEND(1));" />
<plugin name="scene4" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="150" y="235" zorder="2" onhover="showtext(Gang);" onclick="loadscene(scene4, null, MERGE, BLEND(1));" />
<plugin name="scene5" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="300" y="85" zorder="2" onhover="showtext(Bad);" onclick="loadscene(scene5, null, MERGE, BLEND(1));" />
<plugin name="scene6" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="450" y="145" zorder="2" onhover="showtext(Kinder);" onclick="loadscene(scene6, null, MERGE, BLEND(1));" />
<plugin name="scene7" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="450" y="310" zorder="2" onhover="showtext(Schlafzimmer);" onclick="loadscene(scene7, null, MERGE, BLEND(1));" />
<!-- activated hotpot -->
<plugin name="activespot" url="mappointactive.png" keep="true" align="center" edge="center" visible="false" zorder="3" />
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="%SWFPATH%/plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
mask="mapmask"
align="lefttop"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xFF0000"
scale="0.5"
visible="false"
/>
<!-- mask for radar -->
<plugin name="mapmask" url="map_mask.png" keep="true"
parent="map"
enabled="false"
/>
<!-- actions -->
<action name="closemap">
set(onclick,action(openmap););
tween(width,64,distance(320,0.5),easeoutquad);
tween(height,45,distance(227,0.5),easeoutquad);
</action>
<action name="openmap">
set(onclick,action(closemap););
tween(width,320,distance(320,0.5),easeoutquad);
tween(height,227,distance(227,0.5),easeoutquad);
</action>
<!-- activatespot action,
- this action has two arguments:
- %1 = the current spot
- %2 = the current radar heading
-->
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
trace(plugin[radar].x,'-',plugin[radar].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
</krpano>
Display More