IOS third-party-Baidu map SDK (1), iossdk

Source: Internet
Author: User

IOS third-party-Baidu map SDK (1), iossdk

  • Preface

Recently, when the project is busy, I want to familiarize myself with Baidu map methods. Based on Baidu map 2.10.0, I wrote a demo and wrote a blog to record it.

  • Simulator settings

I copied a previously written graph directly...

  • Get Baidu map KEY

  • Make Baidu map available

  

 

Set a file to. mm

  

  • Configure the development environment

1. Introduce the system package

  

2. Add-ObjC to TARGETS-> Build Settings-> Other Linker Flags.

3. confirm that the mapapi. bundle file is added to the project and the method is correct. You cannot delete or modify the content in the files folder.

4. Add Baidu Map framework

  

5. Call the header file

# Import <baidumapi_base/BMKBaseComponent. h> // introduce all base-related header files # import <BaiduMapAPI_Map/BMKMapComponent. h> // introduce all header files of the map function # import <baidumapi_search/BMKSearchComponent. h> // introduce all header files of the search function # import <BaiduMapAPI_Cloud/BMKCloudSearchComponent. h> // introduce all header files of the cloud search function # import <BaiduMapAPI_Location/BMKLocationComponent. h> // introduce all header files of the positioning function # import <BaiduMapAPI_Utils/BMKUtilsComponent. h> // introduce all the header files of the computing tool # import <baidumapi_radar/BMKRadarComponent. h> // introduce all the header files of the peripheral radar function # import <BaiduMapAPI_Map/BMKMapView. h> // only introduce a single header file

 

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.