Hi, maybe I didn't understand very well but I thought onremovepano would be executed before loading a newpano ?
I'm trying to record the current view and xml url of a pano when a hotspot is clicked, so after I can reload this pano with the same view. (it's to go from an aerial pano to a floor pano, and then be able to reload the air pano with the initial view depending on wich hotspot has been clicked).
So I wrote :
Code
onremovepano="copy(lasth, view.hlookat);copy(lastv, view.vlookat);copy(lastf, view.fov);copy(lastxml,xml.url);"
but when I trace lasth lastv... I have the values of the new pano so I guess onremovepano is executed when the new xml file is loaded ?
Is there a way to record the view BEFORE loading a new pano ?
Thanx !