given a central latitude and longitude and also a zoom say 12, how can i get the max/min values for both lat and lon? basically, how can i get the bounds??

asked 15 Mar '12, 21:35

bernabasd's gravatar image

accept rate: 0%

If you're using an existing Javascript library to display map tiles, then it may already contain functions that save you a bit of work, such as these in Leaflet.

permanent link

answered 16 Mar '12, 10:48

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 15%

There's a wiki page that explains this with lots of examples in different programming languages:

permanent link

answered 15 Mar '12, 22:10

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 24%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Mar '12, 21:35

question was seen: 6,105 times

last updated: 16 Mar '12, 10:48

powered by OSQA