google-maps-api-addons icon indicating copy to clipboard operation
google-maps-api-addons copied to clipboard

Safari Panomarker movement

Open Timtimsupertim opened this issue 9 years ago • 1 comments

In Safari (9.1, OS X El Capitan) the panomarker anchoring seems to be off when panning around. The marker moves around a bit. This is in Street View WebGL mode (as no other mode seems to work currently in Safari). In Chrome there is no issue, the marker moves as it should.

Timtimsupertim avatar Jul 26 '16 13:07 Timtimsupertim

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;
}

jaydubal avatar Feb 22 '17 07:02 jaydubal