-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
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;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels