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

Monday, July 20th 2015, 12:57am

Javascript interface setting hotspot point ath/atv error

Hi,
I am currently trying to create hotspot via the javascript interface. Heres my code:

Source code

1
	pano.call("addhotspot(test)");	pano.call("set(hotspot[test].point[0].ath, 10.01230022);");



However this produces an error in my javascript console: "Uncaught TypeError: Cannot read property 'ath' of undefined"

Is this a bug or am I doing something wrong. Any help is appreciated. Thank you.

2

Tuesday, August 4th 2015, 10:38am

try this:

Source code

1
pano.call("addhotspot(test)");	pano.call("set(hotspot[test].point[0].ath", 10.01230022););



But It will work? doubt it