You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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