You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
Hi , Is there any way to add info spot dynamically by click user ? for example , add event Listener for click , when user click any where , get me x, y ,z and i create a new info spot with this detail and add to panorama . please give me solution .
The text was updated successfully, but these errors were encountered:
Yes, you can use addEventListener to listen left click, and if you like control right click use contextmenu event
And for get actual position i use raycaster:
//Raycasterviewer.raycaster.intersectObject(viewer.panorama,true);clickPosition=intersectObjs[0].point;//If you like check if exist infospot in same positionisInfospot=intersectObjs.filter(e=>e.object.type=="infospot");// add you hostpotinfospot=newthis.PANOLENS.Infospot();// x position is inverted, i don't know why, but that's how it isinfospot.position.set(clickPosition.x*-1,clickPosition.y,clickPosition.z);viewer.panorama.add(infospot);viewer.paronama.toggleInfospotVisibility(true);
Hi , Is there any way to add info spot dynamically by click user ? for example , add event Listener for click , when user click any where , get me x, y ,z and i create a new info spot with this detail and add to panorama . please give me solution .
The text was updated successfully, but these errors were encountered: