Hi,
note - this example is also included in the viewer download package!
It works like that - a hotspot image will be placed at the nadir location (ath=0, atv=90) and automatically rotated together with the view.
Here a xml example code for including the hotspot image (change it's size with the scale setting there) and an event that will rotate it:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<hotspot name="nadirlogo" keep="true"
url="logo.png"
ath="0"
atv="90"
distorted="true"
scale="1.0"
rotate="0.0"
enabled="false"
/>
<events name="nadirlogo_automatic_rotation" keep="true"
onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);"
/>
|
(btw - remove the keep="true" if you don't want that logo on all panos)
Best regards,
Klaus