Created
November 7, 2014 15:08
-
-
Save leeprobert/6576639cbef1dc46feed to your computer and use it in GitHub Desktop.
This bit of code will convert the StreetView getZoom() Number into the 'field of view' property you need for the StreetView Image API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var zoom = panorama.getPov().zoom; | |
var fov = 180/Math.pow(2,zoom); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment