revilosun / WmsMapKit_Swift

MIT License
7 stars 2 forks source link

Please explain the magic numbers #3

Open pahnev opened 7 years ago

pahnev commented 7 years ago

First of all, thanks for the example!

Just for the sake of understanding the whole class better, could you explain what the numbers, like 20037508.34 mean? Thanks!

revilosun commented 7 years ago

Hi, the numbers refer to the conversions of the Mercator projection. For more information, see: https://en.wikipedia.org/wiki/Web_Mercator

Greets

pahnev commented 7 years ago

Awesome thanks!