Open Varin6 opened 7 years ago
<script type="text/javascript" src="../js/libpannellum.js"></script>
<script type="text/javascript" src="../js/RequestAnimationFrame.js"></script>
<script type="text/javascript" src="../js/pannellum.js"></script>
<script type="text/javascript" src="standalone.js"></script>
Get used by the standalone version.
If you want to use it like with the CDN you have to build pannellum first. Check this folder for the build script:
<pannellum-root>/utils/build/build.*
Doing that will create the files like the one from the CDN. That one you can use.
What @DanielBiegler said is correct, although standalone.js
is only for the standalone version and shouldn't be added when using the API.
Are there any errors displayed in your browser's developer console?
We had similiar problem.
@mpetroff First of all we think release 2.3.2 (zip) is not 2.3.2, it doesn't contain device orientation support (start/stopOrientation etc.)
We decided to build release ourselves, but then mouse grab to look around stopped working. Problem is in .pnlm-dragfix as it doesn't have z-index. Then You also need to add z-index to .pnlm-controls-container and hotspots.
@jpass The 2.3.2 release is 2.3.2. The startOrientation
and stopOrientation
functions are not currently in a stable release.
Downloaded the latest version, added those js files (and css files in header):
Now the image appears, but can't be rotated. When I use the CDN version, all works fine
<script src="https://cdn.pannellum.org/2.3/pannellum.js"></script>
Note: If libpannellum.js is not added to the project, the plugin won't load pictures at all. It will be stuck on "Loading"