I add a hotspot by doing:
Code
var pano = document.getElementById('pano');
var hotspotUuid = 'temphotspot';
var h = pano.get("view.hlookat");
var v = pano.get("view.vlookat");
pano.call("addhotspot(" + hotspotUuid + ")");
pano.set("hotspot[" + hotspotUuid + "].url", 'hotspot.svg');
pano.set("hotspot[" + hotspotUuid + "].ath", h);
pano.set("hotspot[" + hotspotUuid + "].atv", v);
Display More
then at a point later in time, when I try removing it, it works, but I get an error in the console and I don't know why.
Code
var pano = document.getElementById('pano');
var hotspotUuid = 'temphotspot';
pano.call("removehotspot(" + hotspotUuid + ");");
I've removed hotspots before so not sure what I am doing incorrectly - any ideas?