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.

    Edited once, last by xhe (August 30, 2019 at 6:47 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!