1
votes

How can I convert zoom lavel to altitude?

There is some kind of function or algorithm or table of values?

1
Can you clarify what you mean by "altitude"? That is, are you trying to answer the question: "If my map is at zoom level X, what would the physical altitude of the camera object be if it were an actual camera placed in the real world?" Or, are you asking about the camera space height (in order to perform a programmatic manipulation of the camera)?Adriana Babakanian
@AdrianaBabakanian Hi. Yes, i trying to answer the question:" If my map is at zoom level X, what would the physical altitude of the camera object be if it were an actual camera placed in the real world?" OR "How to convert zoom lavel to meters" OR "If the layer has a maxzoom of 15 how many meters is it on the surface of the earth in 3d"Konstantin Emelyanov

1 Answers

1
votes

There is a draft PR at https://github.com/mapbox/mapbox-gl-js/pull/8830 which adds a method to set the camera with an altitude, you could pull out some of that code to make your own method which returns a zoom level given an altitude.