How to enable the concept of scaling level in IOS map development

Source: Internet
Author: User

When developing the map app, we found that the SDK did not set the map zoom level. To display the map, we set its center point and then use a span to control the display area, you will ask, what is span? In fact, it is also related to latitude and longpolling. If there is a concept of scaling level, it is easier to understand during development. I collected the relevant information, which gave mkmapview the concept of scaling level.

Source code: http://troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/

Proof of mathematics: http://troybrant.net/blog/2010/01/mkmapview-and-zoom-levels-a-visual-guide/

It doesn't matter if you don't understand the mathematical principles he said. You can use the source code directly. Well, if you don't see his license statement, change your name.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.