1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<!-- the image map -->
<layer name="map1" url="skin/karte.png" keep="true" align="left" x="-5" y="-80" width="350" height="470"
altonloaded="if(istablet, mul(scale,1.0));"
handcursor="false"
scalechildren="true"
maskchildren="true"
onclick="closemap()"
onloaded="closemap()"
border="10"
>
<!-- 'rooms' and spots - the 'room' container elements were used for masking the radar -->
<layer name="spot1" style="map_hotspotstyle" x="61" y="249" onclick="loadscene(scene_01_koeln, null, MERGE, BLEND(1));" />
<layer name="spot2" style="map_hotspotstyle" x="75" y="227" onclick="loadscene(scene_02_dortmund, null, MERGE, BLEND(1));" />
<layer name="spot3" style="map_hotspotstyle" x="154" y="119" onclick="loadscene(scene_03_hamburg, null, MERGE, BLEND(1));" />
<layer name="spot4" style="map_hotspotstyle" x="214" y="383" onclick="loadscene(scene_04_muenchen, null, MERGE, BLEND(1));" />
<layer name="spot5" style="map_hotspotstyle" x="200" y="314" onclick="loadscene(scene_05_nuernberg, null, MERGE, BLEND(1));" />
</layer>
<!-- radar plugin, will be assigned to be a child of spot -->
<layer name="activespot" scale="1.0" keep="true" visible="false" altonloaded="if(istablet, mul(scale,1.2));"
url="skin/mappointactive.png"
align="center" edge="center"
/>
<!-- actions -->
<action name="closemap">
set(onclick, openmap() );
tween(x,-325);
</action>
<action name="openmap">
set(onclick, closemap() );
tween(x,-5);
</action>
<!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->
<action name="activatespot">
set(layer[activespot].parent, layer[%1]);
set(layer[activespot].visible, true);
</action>
|