One more question:
How make all hotspots visible after panorama loading?
I have tried some ways but have failed.
1. Create additional XML with hotspot and make loadxml actions
|
Source code
|
1
|
<events onloadcomplete="loadxml([hotspot.xml], null, KEEPALL);"/>
|
- The panorama picture is lost because <image> doesn't support keep attribute
2. To set visibility in style for all hotspots
|
Source code
|
1
|
<events onloadcomplete="set(style[hs].visible,true);"/>
|
- "set" and "style" are incompatible
3. Extensive way
|
Source code
|
1
2
3
4
5
|
<events onloadcomplete="set(hotspot[hs1].visible,true);
set(hotspot[hs2].visible,true);
set(hotspot[hs3].visible,true);
....
set(hotspot[hs2500].visible,true);"/>
|
- It works properly but code is very long
Сould you advice something?