Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
Panolens.js / Three.js Panorama image not appearing

I'm not sure why no image is appearing. I'm using a visual studio code live server extension with the port 5050.

Here's the whole project source code: https://github.com/chamx2/Web360Sample.git

this is my index.html

<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
        <link rel="stylesheet" href="css/style.css" />
        <title>Web360 Sample</title>
    </head>
    <body>
    
        <h1>Welcome to my 360 sample website</h1>
        <p>Please enjoy the view</p>
        <div class="pano"></div>
    
    
     
        
    </body>
    <script type="javascript" src="js/main.js"></script>
    <!-- <script type="javascript" src="js/three.js"></script> -->
    <script type="javascript" src="js/three.min.js"></script>
    <script type="javascript" src="js/three.module.js"></script>
    <!-- <script type="javascript" src="js/pano.js"></script> -->
    <script type="javascript" src="js/panolens.min.js"></script>
    </html>

this is my style.css code

@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro&family=Literata");

h1 
{
    font-size: 4.5em;
    text-align: center;
    margin: 35px 0;
    font-family: 'Crimson Pro', serif;
}

p
{
    font-size: 16px;
    max-width: 600px;
    margin: 35px auto;
    font-family: 'Literata', serif;
}

.pano
{
    width: 100%;
    height: 600px;
}

This is my main.js code

const panoImage = document.querySelector('.pano');
const samplePanoPath = '../images/pano1.jpg';


const panorama = new PANOLENS.ImagePanorama(samplePanoPath);
const viewer = new PANOLENS.Viewer({
    container:panoImage,
    autoRotate:true,
    autoRotateSpeed: .5

});

viewer.add(panorama);

I wonder what's wrong, I'm not getting any an error on my console except for a warning: 'Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform' which I don't think is relevant or I should look into.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!