mistic100 / Photo-Sphere-Viewer

A JavaScript library to display 360° sphere panoramas.
https://photo-sphere-viewer.js.org
MIT License
1.8k stars 645 forks source link

Marker interaction in stereo mode #1307

Open mistic100 opened 1 month ago

mistic100 commented 1 month ago

Discussed in https://github.com/mistic100/Photo-Sphere-Viewer/discussions/1119

Originally posted by **lukeIam** October 15, 2023 Hi 👋, nice library! One question: does somebody knows a way how to let a user interact with markers in stereo mode? I thought about adding a dot in the center of the users view + when the view does not move show a loading circle. After some time of non-movement the click event of the marker "near" of the "cursor" dot is invoked. But I was unable to implement this in a stereo view. Any thoughts?
mistic100 commented 1 month ago

This kind of interaction will only be possible with imageLayer and videoLayer markers. Other markers are not part of the 3D scene and thus cannot be displayed in stereo mode.