Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I determine the Field of View a street view panorama map is using

I notice the Field of View (FOV) degree per street view zoom level is different between browsers

I believe the documented street view zoom level to FOV is

0: 180, 1: 90, 2: 45, 3: 22.5, 4: 11:25

I am using the v3 Maps API with street view panorama and get zoom levels to FOV in chrome around

0: 127, 1: 90, 2: 53, 3: 28, 4: 14

These zoom to FOV are the same in IE7 and IE8

in Firefox and IE6 they are:

0: 180, 1: 90, 2: 45, 3: 22.5, 4: 11:25 
  • Is this documented?
  • How can I enforce the street view FOV consistently across browsers or calculate the FOV value for that zoom level?
like image 345
user1268415 Avatar asked Mar 20 '12 20:03

user1268415


People also ask

What is Google Street View FOV?

fov (default is 90 ) determines the horizontal field of view of the image. The field of view is expressed in degrees, with a maximum allowed value of 120 .

What are the map details available in Street View?

With Street View, explore world landmarks, see natural wonders, and step inside places such as museums, arenas, restaurants, or small businesses. You can use Street View in Google Maps, the Street View gallery, or the Street View app. Discover where Street View is available.

What focal length is Google Street View?

Re: Google street view focal length? Google Street view is shot on 360 degree, so you need a camera that does that.


1 Answers

Currently, there is a table here relating zoom and FOV that says:

0=>180 1=>90 2=>45 3=>22.5 4=>11.5

You can convert from zoom to FOV in javascript like this:

var fov = 180 / Math.pow(2,zoom);

like image 172
Fernando Fabreti Avatar answered Sep 28 '22 12:09

Fernando Fabreti