Re: [Google Maps API v3] Re: convertion between zoom and fov values

2017-06-07 Thread Thomas Orlita
If is anyone still interested, here are the formulas I use: - Convert *fov* to *zoom*: zoom = -(Math.log(*fov*/45)-2*Math.log(2))/Math.log(2) - Convert *zoom* to *fov*: fov = 180 / Math.pow(2,*zoom*) https://stackoverflow.com/a/42319897/4227998 -- You re

Re: [Google Maps API v3] Re: convertion between zoom and fov values

2011-11-05 Thread JD Gauchat
Thanks barry. Pretty close! I'm implementing that formula. The only thing is that the result goes over the limits. But that's not your formula's fault. That's because the limits for fov are 10 and 120, so there are no values for some zooms. For example, if the zoom is 0, the right value for fov

Re: [Google Maps API v3] Re: convertion between zoom and fov values

2011-11-05 Thread Barry Hunter
var fov = 3.9018*Math.pow(zoom,2) - 42.432*zoom + 123; Might be one possible formular. I used Excel to make that. Plotted your values as a scatter graph. Add a trendline for the graph (right click the line, and add Trendline) In the options for the trendline, is an option to display the equation