Sie sind nicht angemeldet.

1

Samstag, 7. September 2019, 01:07

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

Samstag, 7. September 2019, 11:09

Great thanks

4

Mittwoch, 11. September 2019, 10:13

Hi,

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

Quellcode

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


Best regards,
Klaus

5

Mittwoch, 11. September 2019, 11:21

Thanks very much.

GK