Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mapbox Cookbook

You're reading from  Mapbox Cookbook

Product type Book
Published in Mar 2016
Publisher
ISBN-13 9781784397357
Pages 264 pages
Edition 1st Edition
Languages

Table of Contents (13) Chapters

Integrating your project with Mapbox GL


In this recipe, we will discover how you can integrate your projects with Mapbox GL.

How to do it…

The easiest way to link to external libraries or frameworks on the iOS platform is via CocoaPods. It's the most popular package manager and is built with Ruby, which is preinstalled in OS X. Also, installing it is extremely easy, as shown:

  1. Open a terminal.

  2. Paste the following command:

    sudo gem install cocoapods
    
  3. After a few moments, CocoaPods will be installed. To make sure that everything is working, you can check the version via the following command:

    pod –version
    

    We will get back something similar to this:

    0.37.2
    

Note

You can learn more about CocoaPods at https://cocoapods.org.

Creating the Xcode project file and linking it to Mapbox GL

Perform the following steps:

  1. Open Xcode, and from the templates, select Single View Application.

    Note

    If you don't have Xcode installed, you can download it for free from the Mac App Store at https://itunes.apple.com/us/app/xcode...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}