Deep Map SDK iOS
Getting started with Map v2
Creating a simple application with Deep Map™ is simpler than you might think. To begin, you will need the following files:
- HDMMapCore.framework - the main framework for the DeepMap 2.0 SDK
- DeepMap.zip - contains the map file, styling, routing-database, textures and more
You can find the above files on our Download page. Mind that this section of our website is password protected - please contact us to get your credentials!
For the scope of the tutorial we will use a simple "Single View Application" :
Note: The following steps are the same for Objective-C and Swift.
Once this is done we add our framework to the project by adding it to the Embedded Binaries section in the General tab:
Note: Also make sure the framework is inside your project or add the path to the framework to the "Framework Search Path" in the build settings!
We also need to add our mapfile (DeepMap.zip) as a resource for our app:
In order to show the map, a HDMMapView must be set. This part is slightly different for Objective-C and Swift:
Now open the header-file ViewController.h. For simplicity, replace the view from the template with our HDMMapView. All you have to do for that to work is the following:
Now open the file ViewController.swift. For simplicity, replace the view from the template with our HDMMapView. All you have to do for that to work is the following:
Thats it! If you now start the app on your device or in the simulator you will be able to view our example map.
Or if you want to use the mapView inside of a ContainerView use this: