question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading panorama after creating viewer instance

See original GitHub issue

Issues guidelines

Hi, first of all thank you for your plugin. I’m currently trying to “lazy load” a panorama with markers, but the image is always grey. It works if i resize the window.

Example https://imgur.com/a/lj0fb9u

Code: https://gist.github.com/query-wow/1e17b4a25d98863ae9a35e35f701f6e8

Example of the code

var manager = new PanoramaManager(document.getElementById('VTImage'));
if (media.waypoints.length)
{
      markers = manager.createHtmlMarkers(media, media.waypoints);
}

if (media.doorways.length)
{
	if ($.isArray(markers))
	{
		markers.push(manager.createHtmlMarkers(media, media.doorways));
	}
	else
	{
		markers = manager.createHtmlMarkers(media, media.doorways);
	}
}

manager.addPanorama(media.imageSrc, markers);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mistic100commented, Nov 11, 2020

use dataHelper.viewerCoordsToVector3 then dataHelper.vector3ToSphericalCoords

1reaction
mistic100commented, Nov 10, 2020

Please put the demo online.

Issue guidelines :

  • Bug reports must come with a simple test case, preferably on jsFiddle, Plunker, etc.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Load a Partial Firewall Configuration into Panorama
Load a Partial Firewall Configuration into Panorama · On Panorama, select. Panorama. Setup. Operations . · Click. Import named Panorama configuration snapshot. ,....
Read more >
WebGL ContextLost when load image many times #169 - GitHub
When I load image with ImagePanorama class, it makes WebGL ContextLost after many ... ImagePanorama(imageSource1 ); viewer = new PANOLENS.
Read more >
Panorama Administrator's Guide
Create, modify, or delete Panorama or firewall administrators and roles. • Export, validate, revert, save, load, or import a configuration ...
Read more >
Loading Google Street View Image API by panorama ID rather ...
When calling the street view image API using a pano id, try use &pano=#panoid. The monkey · Share.
Read more >
panorama/Panorama.js - Panolens
Mesh.prototype ), {; constructor: Panorama,; /**; * Create a skybox ... This will be called when panorama is loaded; * @memberOf Panorama; *...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found