AirMapSDK-Swift library reads a JSON configuration file during initialization. This
airmap.config.json file can be downloaded from the AirMap Developer Portal and placed in the root of the project's app bundle.
AirMapMapView, which exposes methods that allow you to contextually configure the map.
AirMapMapView is a subclass of
MGLMapView, which is provided by the Mapbox SDK. Please sign up and request a Mapbox access token: https://www.mapbox.com/ios-sdk/#access_tokens
You can add this access token to your
The AirMapSDK-Swift library and its dependencies are available via CocoaPods or Carthage.
Always check the Github repo for the latest release versions: SDK Releases
The CocoaPods version is broken down into various subspecs including AirMapSDK/Core, AirMapSDK/Traffic, AirMapSDK/Telemetry, and AirMap/UI. To install all components, use AirMapSDK.
To install the iOS SDK using Carthage dependency management add the following to your Cartfile:
To use the AirMap SDK within your code, add the following import statement:
An example iOS app is available in the AirMapSDK-Swift repository.
$ git clone https://github.com/AirMap/AirMapSDK-Swift.git $ cd AirMapSDK-Swift
$ cd Example $ pod install
$ open AirMapSDK.xcworkspace
Download your application's
airmap.config.json file from the AirMap Developer Portal and set the Mapbox access token.
Add the configuration file to the root of the project.
Updated 5 months ago