Pannellum

The Pannellum extension component uses the Pannellum library. Pannellum is a lightweight, free, and open source panorama viewer for the web.

How to Use

The Pannellum extension can be added to a Wisej.NET project using NuGet Package Manager.

The Panellum widget is configured through its options property. Here are a couple of sample code snippets:

this.pannellum1.Options = new
            {
                type = "cubemap",
                autoLoad = true,
                cubeMap = new[] {
                    "https://pannellum.org/images/wyman-park-playground-cubic/face0.jpg",
                    "https://pannellum.org/images/wyman-park-playground-cubic/face1.jpg",
                    "https://pannellum.org/images/wyman-park-playground-cubic/face2.jpg",
                    "https://pannellum.org/images/wyman-park-playground-cubic/face3.jpg",
                    "https://pannellum.org/images/wyman-park-playground-cubic/face4.jpg",
                    "https://pannellum.org/images/wyman-park-playground-cubic/face5.jpg" }
            };
this.pannellum1.Options = new
            {
                type = "equirectangular",
                autoLoad = true,
                autoRotate = -2,
                panorama = "https://pannellum.org/images/alma.jpg"
            };
this.pannellum1.Options = new
            {
                type = "multires",
                autoLoad = true,
                multiRes = new
                {
                    basePath = "https://pannellum.org/images/multires/library",
                    path = "/%l/%s%y_%x",
                    fallbackPath = "/fallback/%s",
                    extension = "jpg",
                    tileResolution = 512,
                    maxLevel = 6,
                    cubeResolution = 8432
                }
            };

Find more information in our Panellum example in C# or in VB.NET.

Last updated