Pannellum: How to call an API function after generating the pannellum panorama div ?

Created on 13 Feb 2016  路  1Comment  路  Source: mpetroff/pannellum

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

question

Most helpful comment

viewer = pannellum.viewer('panorama', {
    "type": "equirectangular",
    "panorama": "https://pannellum.org/images/alma.jpg"
});

viewer.setYaw(45);

Your username is really creepy.

>All comments

viewer = pannellum.viewer('panorama', {
    "type": "equirectangular",
    "panorama": "https://pannellum.org/images/alma.jpg"
});

viewer.setYaw(45);

Your username is really creepy.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arpu picture arpu  路  6Comments

afriedle picture afriedle  路  3Comments

tomas-nz picture tomas-nz  路  4Comments

DietRedThunder picture DietRedThunder  路  6Comments

exotfboy picture exotfboy  路  3Comments