Sie sind nicht angemeldet.

1

Mittwoch, 29. Mai 2013, 01:59

hotspot over radar layer

Hi, in my vtour i have an image map with some hotspot, every hotspot have the radar actived.

I don't know why, but some htspot are over the radar layer (i can click they) and some other are bottom the radar layer (and i can't click they).
How i can put all the hotspot over the radar layer?

here the vtour http://www.johnnypixel.it/TEST/fizzonasco_golf-tolcinasco/

Thanks.

2

Samstag, 1. Juni 2013, 23:36

Try setting zorder of the hotspots e.g. zorder="9" and try then.

3

Montag, 3. Juni 2013, 20:59

Hi, i have try, but nothing, the radar remain over all the hotspot.

The strange thing is that if I click other hotspots, after, they have visited, some of it pass over the radar..

..and i don't know why.

Here the code that i use:

Quellcode

1
2
3
4
5
6
7
<!--BUCA GIALLA 8-->		<layer name="giallo8_partenza_box" type="container" align="lefttop" x="363" y="556" width="100" height="100" maskchildren="false">	 <layer name="giallo8_partenza" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50"  zorder="90" onhover="showtext(Giallo buca 8 - Partenza);" onclick="loadscene(scene_buca8gialla_partenza, null, MERGE, BLEND(1)); action(giallo8partenza);" />		</layer>		
<layer name="giallo8_intermedio_box" type="container" align="lefttop" x="328" y="565" width="100" height="100" maskchildren="false">			<layer name="giallo8_intermedio" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50"  zorder="91" onhover="showtext(Giallo buca 8 - Intermedio);" onclick="loadscene(scene_buca8gialla_intermedio, null, MERGE, BLEND(1)); action(giallo8intermedio);" />		</layer>		
<layer name="giallo8_buca_box" type="container" align="lefttop" x="293" y="540" width="100" height="100" maskchildren="false">			<layer name="giallo8_buca" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50" zorder="92" onhover="showtext(Giallo buca 8 - Buca);" onclick="loadscene(scene_buca8gialla_buca, null, MERGE, BLEND(1)); action(giallo8buca);" />		</layer>	
 <!--BUCA GIALLA 7-->		<layer name="giallo7_partenza_box" type="container" align="lefttop" x="260" y="623" width="100" height="100" maskchildren="false">			<layer name="giallo7_partenza" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50"  zorder="93" onhover="showtext(Giallo buca 7 - Partenza);" onclick="loadscene(scene_buca7gialla_partenza, null, MERGE, BLEND(1)); action(giallo8partenza);" />		</layer>		
<layer name="giallo7_intermedio1_box" type="container" align="lefttop" x="325" y="599" width="100" height="100" maskchildren="false">			<layer name="giallo7_intermedio1" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50"  zorder="94" onhover="showtext(Giallo buca 7 - Intermedio 1);" onclick="loadscene(scene_buca7gialla_intermedio-1, null, MERGE, BLEND(1)); action(giallo8intermedio);" />		</layer> <layer name="giallo7_intermedio2_box" type="container" align="lefttop" x="366" y="590" width="100" height="100" maskchildren="false">	
 <layer name="giallo7_intermedio2" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50" zorder="95" onhover="showtext(Giallo buca 7 - Intermedio 2);" onclick="loadscene(scene_buca7gialla_intermedio-2, null, MERGE, BLEND(1)); action(giallo8buca);" />		</layer> 		
<layer name="giallo7_buca_box" type="container" align="lefttop" x="400" y="590" width="100" height="100" maskchildren="false">			<layer name="giallo7_buca" url="immagini/mappoint.png" align="lefttop" edge="center" x="50" y="50" zorder="96" onhover="showtext(Giallo buca 7 - Buca);" onclick="loadscene(scene_buca7gialla_buca, null, MERGE, BLEND(1)); action(giallo8buca);" />		</layer>

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Donnerstag, 4. Juli 2013, 11:49

Hi!

I've encountered the same issue some time ago. The solution I found out was the following.

In the events you place - onnewpano="activatespot();" . This is action that updates the spots on the map:

The action is as follows:

Quellcode

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
<action name="activatespot">
		set(layer[glavniy_korpus_spot].zorder,2);
		set(layer[vip_gostinaya_spot].zorder,2);
		set(layer[vip_spalnya_spot].zorder,2);
		set(layer[lux_spot].zorder,2);
		set(layer[lux_spalnya_spot].zorder,2);
		set(layer[lux_sanuzel_spot].zorder,2);
		set(layer[lux_studio_spot].zorder,2);
		set(layer[lux_studio_sanuzel_spot].zorder,2);
		set(layer[standart_uluchshenniy_spot].zorder,2);
		set(layer[standart_uluchshenniy_sanuzel_spot].zorder,2);
		set(layer[standart_2-mestniy_spot].zorder,2);
		set(layer[solyanaya_komnata_spot].zorder,2);
		set(layer[solyanaya_komnata_detskiy_ugolok_spot].zorder,2);
		set(layer[shvedskiy_stol_spot].zorder,2);
		set(layer[banketniy_zal_spot].zorder,2);
		set(layer[baby_club_spot].zorder,2);
		set(layer[sportploshadka_spot].zorder,2);
		set(layer[detskaya_ploshadka_spot].zorder,2);
		set(layer[basseyn_spot].zorder,2);
		set(layer[akvatoriya_spot].zorder,2);
		set(layer[parkovaya_zona_spot].zorder,2);
		set(layer[naberezhnaya_spot].zorder,2);
		set(layer[bakara_spot].zorder,2);
		set(layer[bakara_ploshadka_spot].zorder,2);
		set(layer[plyazh_spot].zorder,2);
		set(layer[na_pravom_pirse_zona_spot].zorder,2);
		set(layer[na_levom_pirse_zona_spot].zorder,2);
		
		txtadd(spotname, 'get(xml.scene)','_spot');
		txtadd(parent_name, 'layer[',get(spotname),']');
		set(layer[get(spotname)].zorder,1);
		set(layer[radar].parent, get(parent_name));
		set(layer[radar].visible, true);
		set(layer[radar].heading, get(layer[get(spotname)].heading));
  </action>



Where above are all currently inactive spots and as you can see they all are set to zorder="2" (i.e. above the radar)

The line

Quellcode

1
txtadd(spotname, 'get(xml.scene)','_spot');


composes the name of the current spotmap. Then this spot is set to zorder="1" (i.e. inactive)


Try such code, hope this helps! *smile*
Regards,

Alexey

6

Samstag, 11. Februar 2023, 15:31

Hi!

I've encountered the same issue some time ago. The solution I found out was the following.

In the events you place - onnewpano="activatespot();" . This is action that updates the spots on the map:

The action is as follows:

Quellcode

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
		set(layer[glavniy_korpus_spot].zorder,2);
		set(layer[vip_gostinaya_spot].zorder,2);
		set(layer[vip_spalnya_spot].zorder,2);
		set(layer[lux_spot].zorder,2);
		set(layer[lux_spalnya_spot].zorder,2);
		set(layer[lux_sanuzel_spot].zorder,2);
		set(layer[lux_studio_spot].zorder,2);
		set(layer[lux_studio_sanuzel_spot].zorder,2);
		set(layer[standart_uluchshenniy_spot].zorder,2);
		set(layer[standart_uluchshenniy_sanuzel_spot].zorder,2);
		set(layer[standart_2-mestniy_spot].zorder,2);
		set(layer[solyanaya_komnata_spot].zorder,2);
		set(layer[solyanaya_komnata_detskiy_ugolok_spot].zorder,2);
		set(layer[shvedskiy_stol_spot].zorder,2);
		set(layer[banketniy_zal_spot].zorder,2);
		set(layer[baby_club_spot].zorder,2);
		set(layer[sportploshadka_spot].zorder,2);
		set(layer[detskaya_ploshadka_spot].zorder,2);
		set(layer[basseyn_spot].zorder,2);
		set(layer[akvatoriya_spot].zorder,2);
		set(layer[parkovaya_zona_spot].zorder,2);
		set(layer[naberezhnaya_spot].zorder,2);
		set(layer[bakara_spot].zorder,2);
		set(layer[bakara_ploshadka_spot].zorder,2);
		set(layer[plyazh_spot].zorder,2);
		set(layer[na_pravom_pirse_zona_spot].zorder,2);
		set(layer[na_levom_pirse_zona_spot].zorder,2);
		
		txtadd(spotname, 'get(xml.scene)','_spot');
		txtadd(parent_name, 'layer[',get(spotname),']');
		set(layer[get(spotname)].zorder,1);
		set(layer[radar].parent, get(parent_name));
		set(layer[radar].visible, true);
		set(layer[radar].heading, get(layer[get(spotname)].heading));
  



Where above are all currently inactive spots and as you can see they all are set to zorder="2" (i.e. above the radar)

The line

Quellcode

1
txtadd(spotname, 'get(xml.scene)','_spot');


composes the name of the current spotmap. Then this spot is set to zorder="1" (i.e. inactive)


Try such code, hope this helps! *smile*
Hi, I have the same problem. Some spots are not pressed when the radar is above them. And I tried your solution to the problem.
But I cant understand what does this second part of the code mean :
txtadd(spotname, 'get(xml.scene)','_spot');
txtadd(parent_name, 'layer[',get(spotname),']');
set(layer[get(spotname)].zorder,1);
set(layer[radar].parent, get(parent_name));
set(layer[radar].visible, true);
set(layer[radar].heading, get(layer[get(spotname)].heading));


What does "txtadd" mean ??? And what should I change for my own in this code, if the first part of my code is :


<action name="activatespot">

set(layer[dot_hall].zorder,2);
set(layer[dot_WC].zorder,2);
set(layer[dot_bedroom].zorder,2);
set(layer[dot_kitchen_livingroom].zorder,2);
set(layer[dot_bedroom16].zorder,2);
set(layer[dot_loggia].zorder,2);
set(layer[dot_bathroom].zorder,2);

and then goes second part :

txtadd(spotname, 'get(xml.scene)','dot_');
txtadd(parent_name, 'layer[',get(spotname),']');
set(layer[get(spotname)].zorder,1);
set(layer[radar].parent, get(parent_name));
set(layer[radar].visible, true);
set(layer[radar].heading, get(layer[get(spotname)].heading));


</action>



Thank you in advance for your help, it will really help me finish the tour.

Best regards, Nikolai

Ähnliche Themen