Cant get function pano.getCurrentPointHotspots() to work

Q&A about the latest versions
Post Reply
ffurger
Posts: 105
Joined: Mon Mar 24, 2014 11:45 am

I need to create some custom functionality for when a point hotspot is clicked on.
I thought I could simply retrieve all point hotspots for a given pano and add an event listener to each one of them.

However pano.getCurrentPointHotspots() only returns an empty array. Not quite sure why that would be the case.

Any thoughts or suggestions?

Thank you for your help.
FF
ffurger
Posts: 105
Joined: Mon Mar 24, 2014 11:45 am

I found the problem:

changed from: pano.readConfigUrlAsync("pano.xml")

to: pano.readConfigUrl("pano.xml")
Post Reply