How to get current zoom level in openstreetmap?

I am creating a heat map with an open street map (OSM). When I zoom in, I'm not sure what zoom level I find and at what coordinate position. I wanted to get these numbers for future reference if I want to get there directly.

Is there an Open Street Map API or a hack that can return the map zoom level?

How can I do it?

+4
source share
1 answer

The OpenStreetMap API has a getZoom () method that can be used to get the current zoom level. For more information see http://wiki.openstreetmap.org/wiki/OpenLayers

0

Source: https://habr.com/ru/post/1614973/


All Articles