Hi everyone!
Total newby without any coding experience whatsoever here!
I have a tour with 4 panos and 4 spots positioned in a map representing the position of each pano.
I have gotten the radar plugin to work, but for the life of me can not get the radar to change position to the pano you are currently viewing.
If someone could point me in the correct direction I would be immensely grateful!
Code
<!-- activated spot image (child of the radar layer) -->
<layer name="activespot" url="" align="bottomleft" scale="0.5" edge="center" ox="0" oy="0" zorder="3" visible="true" />
<!-- activated spot image (child of the radar layer) -->
<layer name="activespot" url="" align="lefttop" scale="0.5" edge="center" ox="0" oy="0" zorder="3" visible="true" />
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="%SWFPATH%/plugins/radar.swf"
alturl="./plugins/radar.js"
zorder="2"
keep="true"
heading="0"
parent="map"
mask="skin/map_mask"
maskchildren="false"
align="bottomleft"
edge="center"
x="150" y="200"
linecolor="1"
fillcolor="0xFF4A1C"
scale="0.8"
visible="true"
enabled="false"
/>
<layer name="radar" url="" align="lefttop" scale="0.5" edge="center" ox="0" oy="0" zorder="2" visible="true" />
<!-- activated spot image (child of the radar layer) -->
<layer name="activespot" url="" align="lefttop" scale="0.5" edge="center" ox="0" oy="0" zorder="3" visible="true" />
<!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->
<action name="activatespot">
<!-- copy the spot position to the radar and activespot position -->
copy(layer[radar].4, layer[%1].15);
copy(layer[radar].y, layer[%1].y);
copy(layer[activespot].x, layer[%1].x);
copy(layer[activespot].y, layer[%1].y);
<!-- set the radar heading -->
set(layer[radar].heading, %2);
<!-- show the radar and the activespot -->
set(layer[radar].visible, true);
set(layer[activespot].visible, true);
</action>
</krpano>
Display More
This is what I have in my .xml at the moment.
Thank you very much!