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.

1

Tuesday, March 24th 2020, 5:40am

[Solved]Thumbs are not updated when another pano is loaded.

Hi,
I created a_type.xml, b_type.xml, c_type.xml, d_type.xml.
This is a pano xml that contains scenes.


Load using the loadpanoscene() function through 4 buttons.




The code of the button layer is shown below.




Source code

1
2
3
4
<layer name="load_a_type" style="button" align="bottom" x="-300" y="60" width="100" keep="true"
html="A-TYPE"
onclick="loadpanoscene(a_type.xml, scene_on_1stroom);"
/>


If you load another pano through the button, the thumbnails will not update to the new pano.


Thank you.

This post has been edited 2 times, last edit by "di0deman" (Mar 24th 2020, 8:28am)


2

Tuesday, March 24th 2020, 8:28am

I fixed it by changing the button layer code as below.


Source code

1
2
3
4
<layer name="load_a_type" style="button" align="bottom" x="-300" y="60" width="100" keep="true"
html="A-TYPE"
onclick="loadpanoscene(a_type.xml, scene_on_1stroom);skin_startup();"
/>

Similar threads