hoaiduyit / react-pannellum

46 stars 38 forks source link

Challenges creating a Tour with hotSpots #102

Open alifeinbinary opened 1 year ago

alifeinbinary commented 1 year ago

I'm trying to make an advanced example using this package by creating a multiscene tour with hotspots and I'm experiencing some challenges. My errors seem to be coming from the removal and creation of hotSpots. After consulting the documentation from this repository's README and the original Pannellum documentation, I'm not sure what I'm doing wrong.

You can check out what I've created here: Codesandbox

I'd really appreciate someone helping me figure out what is wrong with my configuration. If I get it working, this Codesandbox could be linked to from the README, so that developers in the future will have an easier time using it.

Thanks in advance.

hoaiduyit commented 1 year ago

Hi @alifeinbinary , it is very clear, your scenes in line 88 has already been declared, please change that definition