polygon hostpot javascript API problems

Q&A about the latest versions
Post Reply
nich008
Posts: 21
Joined: Mon Apr 13, 2015 9:50 pm

Wed May 27, 2020 4:29 pm

Hi
I can't get the javascript API for Polygon Hotspots to work:

(I've attached a test package so you can take a look. Hover over the buttons to see what they do)

These:
pano.showOnePolyHotspot(id:String)
pano.hideOnePolyHotspot(id:String)
pano.toggleOnePolyHotspot(id:String)

seem simple, but don't work as I would have expected. The poly hotspot just flashes.

And:
pano.changePolyHotspotColor(id:String, bgColor:Number, bgAlpha:Number, borderColor:Number, borderAlpha:Number)
I also can't get to work, possibly because I'm unsure of the arguments.

Thanks
John
Attachments
polytest.ggpkg
(281.33 KiB) Downloaded 25 times
Post Reply