This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] how to access the zoom level in a mapnik control?

0

setCenter

supports a zoom argument, but I did not found how to get the current applied zoom level.

Within JavaScript, exists a kind of get method to access the zoom level?

asked 24 Oct '13, 12:30

juer's gravatar image

juer
11112
accept rate: 0%

closed 24 Oct '13, 12:44

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

The question has been closed for the following reason “Question is off-topic or not relevant” by Frederik Ramm 24 Oct ‘13, 12:44


One Answer:

1

It is unclear what you are talking about. It is certainly not an OpenStreetMap question - sounds like it might be an OpenLayers or Leaflet issue, and if that's true you should ask in the appropriate support forums/mailing lists. (If you are talking OpenLayers, there's a getZoom function on the Map object.)

answered 24 Oct '13, 12:44

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .