Sorry, you need to enable JavaScript to visit this website.

Getting started

Getting started

The TomTom Maps SDK gives you the ability to use either online or offline styles in your mobile application.

If you choose to use offline styles, they will be imported to your app with the Maps SDK framework TomTomOnlineSDKMaps. Thanks to that, the styles will already be included in your app at download time. The styles are added to the Maps SDK framework by default.

To integrate the TomTomOnlineSDKMaps for iOS into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'TomTomOnlineSDKMaps'

To integrate the TomTomOnlineSDKMaps with online styles for iOS into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'TomTomOnlineSDKMaps/Online'

Edit the Info.plist and add the service key taken from the My Dashboard site.

<key>OnlineMap.Key</key>
<string>"your-tomtom-key"</string>

 

Additionally, there is the TomTomOnlineSDKMapsUIExtensions framework with default UI controls and other assets for the map.

To use this framework in your project add it to the podfile (it doesn’t require any key).

pod 'TomTomOnlineSDKMapsUIExtensions'

 

The basic steps for adding a map are:

  1. Set up your project as described in DOWNLOADS.

  2. Create the object 'TTMapView'.

  3. Obtain keys from Info.plist.

Initializing a map:

_

let mapView = TTMapView(frame: CGRect.zero)
self.view = mapView
self.mapView = mapView
TTMapView *mapView = [[TTMapView alloc] initWithFrame:CGRectZero];
self.view = mapView;
self.mapView = mapView;