Document Maps SDK for iOS Guides Map Map Types

Map Types

The iOS Map SDK provides several built-in map layers, including satellite, standard (the default yellow-white map), night, navigation, and traffic layers.

Name

Description

Standard Map

MAMapTypeStandard

Satellite Map

MAMapTypeSatellite

Night Mode Map

MAMapTypeStandardNight

Navigation Mode Map

MAMapTypeStandardNavi

The following sections describe the satellite, night, and traffic layers in detail.

Satellite Map

Add the following code to the MapTypeViewController.m file:

[self.mapView setMapType:MAMapTypeSatellite];

The result appears as shown below:

iOS Maps SDK satellite map view showing aerial imagery on an iOS device

Night Map

Setting the night map is similar to setting the satellite map. Use the following code:

[self.mapView setMapType:MAMapTypeStandardNight];

Traffic Layer

Add the following code to the TrafficViewController.m file:

// Enable traffic
self.mapView.showTraffic = YES;

// Disable traffic
self.mapView.showTraffic = NO;

The result appears as shown below:

iOS Maps SDK map with traffic layer enabled showing real-time traffic flow conditions