mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.15k stars 710 forks source link

pannellum click list hotspot #1123

Closed 016886611529a closed 1 year ago

016886611529a commented 1 year ago

I want to add list hotspot at right browser. image and when I click each item hotspot then change scene can you help me ?

mpetroff commented 1 year ago

You'd have to add custom HTML over the viewer, as is done in the custom control example. You'd then need to add a click event listener to each of your buttons, which would call Pannellum's loadScene method to change the scene.

016886611529a commented 1 year ago

@mpetroff you can example for me .... I just started writing javascript. image

Thanks

mpetroff commented 1 year ago

I'm happy to answer specific questions, but I'm not going to write code for you.

016886611529a commented 1 year ago

i had add custom HTML add a click event listener to each of your buttons, which would call Pannellum's [loadScene] method to change the scene. but unsuccessful image

016886611529a commented 1 year ago

thanks you bro. I made it work