Open GiveEXP opened 6 months ago
You appear to be using the default
parameter incorrectly. You're setting it to the contents of the particular scene, which is incorrect. It's used to set parameters that are common to all scenes and to set the firstScene
. You should be using something like:
const viewer = pannellum.viewer('panorama-container', {
default: {
firstScene: 'panoB'
},
scenes: scenes,
})
I also don't know why you're adding your hot spots after the fact instead of including them in the scene configuration.
The tour example shows proper use of both the default
parameter and of including hot spots in the scene configuration.
I have a source code for my view page as follows. I want to add a hotspot to the panorama by adding it to the view of a list of paronama. However, after adding and formatting the default scene as panoB, it successfully loaded the default scene. attached to hotspot but when I click on hotspot, logically it should go to panoC scene but it still reloads to panoB scene.