google-maps-api-addons
google-maps-api-addons copied to clipboard
Safari Panomarker movement
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.
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;
}