hallo Leute,
ich versuche schon den halben Tag einen radar und die entsprechenden spots auf einer map zu installieren, das hat auch immer problemlos funktioniert.
Vor ca. einem Monat das letzte mal alles problemlos in eine tour eingebaut.
Heute funktioniert es mit exakt demselben code nicht mehr ich versteh es nicht.
Ich kann zwar einen einzigen Radar einbauen aber den nicht mit den einzelnen Spots auf der karte verknüpfen.
Hat jemand eine Idee???????
Code
<layer name="radar" visible="false" url="plugins/radar.swf" alturl="plugins/radar.js" align="lefttop" edge="center" zorder="1" scale="0.1" fillcolor="0x99cccc" fillalpha="1.0" linecolor="" linewidth="0.0" linealpha="0.0" /> </layer> <!-- 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" /> </layer> <!-- 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].x, layer[%1].x); 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>