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

Map initialization

Map initialization

The main class with represent a Map is a TTMapView. The TTMapView is an interactive world map that pans and zooms in response to gestures.
The methods that you use to receive map-related update messages in your application as long as it conforms to the TTMapViewDelegate protocol.

The basic steps for adding a map are:

  1. Set up your project as it is described in DOWNLOADS

  2. Create object 'TTMapView'

  3. Obtain keys from Info.plist

  4. Use the 'TTMapView' object to set the map properties.

Initializing Map:

self.mapView = [[TTMapView alloc] initWithFrame:self.view.frame];
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
self.view = self.mapView;

 

OnMapReadyCompletion:

[self.mapView onMapReadyCompletion:^{
    //
}];