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.

xhe

Beginner

  • "xhe" started this thread

Posts: 33

Location: Sunnyvale, California, USA

  • Send private message

1

Friday, August 30th 2019, 6:34am

using loadxml function can not load new pano

Hi All,
I wondered if anyone has experienced below issue:

I am using krpanoApi.actions.loadxml(xml) to load pano, the first time all is good, but if I want to use it to load second pano xml, I then failed, only the first pano is displayed. and the hotspot is still flashing in the page, but no more click event effect.

I wondered the when I use loadxml method second time. the first pano's scene is still in the memory, and that will always been loaded by default.

Are there anyway to unload first pano and then load second new pano, and let krpano play the new pano instead of the old one?

It seemed caused by startup function

I have to change start up function for second pano xml:

set(startscene,"${this.name}");


and then set the scene like this:

<scene name="${this.name}"


now I can load second pano.

This post has been edited 1 times, last edit by "xhe" (Aug 30th 2019, 6:47am)