Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.chrome fails on Firefox #35

Open
jaydubal opened this issue Feb 22, 2017 · 0 comments
Open

window.chrome fails on Firefox #35

jaydubal opened this issue Feb 22, 2017 · 0 comments

Comments

@jaydubal
Copy link

jaydubal commented Feb 22, 2017

While applying the value for this.povToPixel_ using window.chrome check, fails on Firefox.

/* Currently only Chrome is rendering panoramas in a 3D sphere. The other
 browsers are just showing the raw panorama tiles and pan them around.
 */

This scenario is no longer valid.

To fix it comment this line

// this.povToPixel_ = !!window.chrome ? PanoMarker.povToPixel3d : PanoMarker.povToPixel2d;

And add this code below it

this.povToPixel_ = PanoMarker.povToPixel2d;
var pixelCanvas = document.createElement("canvas");

  
if (pixelCanvas && (pixelCanvas.getContext("experimental-webgl") || pixelCanvas.getContext("webgl"))) 
{
   this.povToPixel_ = PanoMarker.povToPixel3d;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant