You are not logged in.

1

Saturday, September 7th 2019, 1:07am

Adding hotspot via JS

Hi,

When adding a hotspot via JS and setting its style attibute e.g.

krpano.set("hotspot["+spotname+"].style", "skin_hotspotstyle|tooltip");


Just to be clear, the new hotspot does not inherit any of the styling nor events defined in "skin_hotspotstyle|tooltip"? - unless I doing something wrong.

Thanks
GK

3

Saturday, September 7th 2019, 11:09am

Great thanks

4

Wednesday, September 11th 2019, 10:13am

Hi,

a quick note about adding hotspots via JS - here an example how it also work:

Source code

1
2
var hs = krpano.addhotspot(spotname);
hs.loadstyle("skin_hotspotstyle|tooltip");


Best regards,
Klaus

5

Wednesday, September 11th 2019, 11:21am

Thanks very much.

GK