Sie sind nicht angemeldet.

1

Montag, 24. September 2018, 17:09

hide hotspots

Hi!

I have panorama with hotspots

http://karamamj.beget.tech/20180724amurskaya/tour.html


i need to hide them on the first opening and switch by button

what action i need to put onstart?

2

Montag, 24. September 2018, 18:28

Hi,

e.g.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<action name="hide_hotspots">
  for(set(i,0), i LT hotspot.count, inc(i),
    set(hotspot[get(i)].visible,false);
  );
</action>

<action name="show_hotspots">
  for(set(i,0), i LT hotspot.count, inc(i),
    set(hotspot[get(i)].visible,true);
  );
</action>

<events name="hide_hotspots_on_first_opening" keep="true"
     onxmlcomplete="hide_hotspots();"
     />

<layer name="yourbutton"
        ...
        onclick="show_hotspots();"
        />


Best regards,
Klaus