Reputation: 237
I am creating a Heat Map with Open Street Map (OSM). When I zoom in I am not sure what zoom level I am at and at which coordinate position. I wanted to get those numbers for future reference if I want to get there directly.
Is there a Open Street Map API or hack that can return the zoom level of the map?
How would I do that?
Upvotes: 6
Views: 4167
Reputation: 1157
There is getZoom() method in OpenStreetMap API which can be used to get current zoom level. For more information see http://wiki.openstreetmap.org/wiki/OpenLayers
Upvotes: 2