Hi, excuse my stupidity but I can not figure where I should add heading for each mapspots.
I play with the Klaus's example code and I can also find the right headings for each panorama using the radar.swf and its editmode="true".
But I have different heading values and I can not find the right place in the code to put it to each mapspot. I will have 3 floors and 31 mapspots in my project.
Thanks in advance
<?xml version="1.0" encoding="utf-8"?>
<krpano>
<!-- the image map -->
<layer name="prvnipatro" url="%SWFPATH%/skin/prvnipatro700.png" keep="true" align="topright" x="10" y="10" width="64" height="45" handcursor="true" scalechildren="true" maskchildren="true" onclick="openmap();">
<!-- 'rooms' and spots - the 'room' container elements were used for masking the radar -->
<layer name="mapspot1" url="%SWFPATH%/skin/mappoint.png" align="lefttop" edge="center" x="426" y="361" zorder="2" onhover="showtext(Vstupní terasa,DEFAULT);" onclick="loadscene(scene_01panocorr, null, MERGE, BLEND(1));" />
<layer name="mapspot2" url="%SWFPATH%/skin/mappoint.png" align="lefttop" edge="center" x="61" y="104" zorder="2" onclick="loadscene(scene_02panocorr, null, MERGE, BLEND(1));" />
<layer name="mapspot3" url="%SWFPATH%/skin/mappoint.png" align="lefttop" edge="center" x="92" y="46" zorder="2" onclick="loadscene(scene_03panocorr, null, MERGE, BLEND(1));" />
</layer>
<!-- radar plugin, will be assigned to be a child of spot -->
<layer name="radar" keep="true" visible="false" url="%SWFPATH%/plugins/radar.swf" alturl="%SWFPATH%/plugins/radar.js" align="center" edge="center" fillcolor="0x273233" fillalpha="0.4" scale="0.5" editmode="true" headingoffset="0" />
<!-- activated spot image (child of the radar layer) -->
<layer name="activespot" parent="radar" url="%SWFPATH%/skin/mappointactive.png" keep="true" align="center" edge="center" />
<!-- actions -->
<action name="closemap">
set(onclick, openmap() );
tween(width,64);
tween(height,45);
</action>
<action name="openmap">
set(onclick, closemap() );
tween(width,700);
tween(height,437);
</action>
<!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->
<action name="activatespot">
set(layer[radar].parent, layer[%1]);
set(layer[radar].visible, true);
set(layer[radar].heading, %2);
</action>
</krpano>