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

Determine the border gps-coordinates of the currently zoomed in view

0

Has there already been an answer to the question, how to determine the border gps-coordinates of the currently zoomed in view? If not, please reply. If yes, please share the link.

asked 27 Jul '12, 17:09

Richart's gravatar image

Richart
11224
accept rate: 0%

edited 27 Jul '12, 17:10


2 Answers:

0

answered 27 Jul '12, 17:34

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

http://pastebin.com/mMKrhA4D is what I did with what he wrote at https://help.openstreetmap.org/questions/3099/calculate-bbox-from-latlonzoompixel-widthpixel-height. But the calculated values are too large. Why is that?

(27 Jul '12, 22:19) Richart

0

Click on export tab and you will see lats and lons of the screen

answered 27 Jul '12, 20:46

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

I am talking about using it on your website, not osm.org

(27 Jul '12, 22:17) Richart

Source code available on GitHub .