Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Implement Map.get_zoom in python bindings #561

Closed
artemp opened this Issue Oct 11, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Owner

artemp commented Oct 11, 2011

There is no way to get the current zoom when rendering the map. This can be useful when debugging.

Owner

artemp commented Oct 11, 2011

[springmeyer] you can access the property of map.scale_denominator. Mapnik has no internal understanding of **2 zoom levels (as in google or osm zoom levels). We could provide potentially provide functions to convert between scale_denominator and zoom levels for google spherical mercator projection, but generally that would be handled by an application like tilecache or mod_tile that knows the target projection and its max_extent, scale levels, number of zooms, etc..

What do you think?

@springmeyer springmeyer closed this Sep 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment