ios-Map-Manual environment construction

Source: Internet
Author: User

One. Download Map package

1. Link Address: http://lbs.amap.com/api/ios-sdk/download/

2. Need to download the package and import the package

(1) mamapkit-5.framework 2D map SDK

(2) Amapfoundationkit-6.framework Basic SDK (required), the function of setting key will be transferred to the base package to complete

(3) Amapsearchkit.framework Search SDK

Note: I do not know why (maybe I downloaded the wrong, or I am wrong, the package with "-" the import will not find the package). I try to use this three package from the official demo, it's OK to import.

3. Import the introduced resource file Amap.bundle.

Amap.bundle in the Resources folder of Mamapkit.framework, the Amap.bundle resource file stores images such as location, default PIN label gaze, and can be exploited using these resource images.

Select the project name in the left-hand directory, select Add files to "project name" from the context menu, select the Amap.bundle file from the Mamapkit.framework->resources file, and tick "Copy items if needed" check box, click the Add button to add the resource file to the project.

4. library files that need to be introduced

6. Set Request permissions

Add-objc,c capitalization to the Targets->build settings->other Linker Flags .

7. In APPDELEGATE.M.

Import

#import <AMapFoundationKit/AMapFoundationKit.h>

-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions {         // set Appkey is in the base package    @" e941d2c63851ea4c47518796ab47530e " ;     return YES;}

8. Compile the success. Ok

ios-Map-Manual environment construction

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.