How to call an API function after generating the pannellum panorama div ?
I have tried that :
<div id="panorama"></div>
<script>
pannellum.viewer('panorama', {
"type": "equirectangular",
"panorama": "https://pannellum.org/images/alma.jpg"
});
pannellum.setYaw(45);
</script>
But of course I have this error : "TypeError: pannellum.setYaw is not a function
viewer = pannellum.viewer('panorama', {
"type": "equirectangular",
"panorama": "https://pannellum.org/images/alma.jpg"
});
viewer.setYaw(45);
Your username is really creepy.
Most helpful comment
Your username is really creepy.