Cube map

Display a cube map panorama. The configuration must be specified in a configuration file. The type parameter must be set to cubemap, and the cube faces are specified using the cubeMap parameter.

<iframe>

<iframe width="600" height="400" allowfullscreen style="border-style:none;" src="https://cdn.pannellum.org/2.2/pannellum.htm?config=https://pannellum.org/configs/cube-map.json"></iframe>

Standalone

https://cdn.pannellum.org/2.2/pannellum.htm?config=https://pannellum.org/configs/cube-map.json

API

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cube map</title>
    <link rel="stylesheet" href="https://cdn.pannellum.org/2.2/pannellum.css"/>
    <script type="text/javascript" src="https://cdn.pannellum.org/2.2/pannellum.js"></script>
    <style>
    #panorama {
        width: 600px;
        height: 400px;
    }
    </style>
</head>
<body>

<div id="panorama"></div>
<script>
pannellum.viewer('panorama', {
    "type": "cubemap",
    "cubeMap": [
        "/images/wyman-park-playground-cubic/face0.jpg",
        "/images/wyman-park-playground-cubic/face1.jpg",
        "/images/wyman-park-playground-cubic/face2.jpg",
        "/images/wyman-park-playground-cubic/face3.jpg",
        "/images/wyman-park-playground-cubic/face4.jpg",
        "/images/wyman-park-playground-cubic/face5.jpg"
    ]
});
</script>

</body>
</html>

Pannellum is developed on GitHub by Matthew Petroff.