iOS MKMapView Change map-type

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

There are 5 different types (MKMapType), MKMapView can display.

iPhone OS 3

.standard

Displays a street map that shows the position of all roads and some road names.

Swift 2

mapView.mapType = .Standard

Swift 3

mapView.mapType = .standard

Objective-C

_mapView.mapType = MKMapTypeStandard;

MKMapType.standard example

iPhone OS 3

.satellite

Displays satellite imagery of the area.

Swift 2

mapView.mapType = .Satellite

Swift 3

mapView.mapType = .satellite

Objective-C

_mapView.mapType = MKMapTypeSatellite;

MKMapType.satellite example

iOS 9

.satelliteFlyover

Displays a satellite image of the area with flyover data where available.

Swift 2

mapView.mapType = .SatelliteFlyover

Swift 3

mapView.mapType = .satelliteFlyover

Objective-C

_mapView.mapType = MKMapTypeSatelliteFlyover;
iPhone OS 3

.hybrid

Displays a satellite image of the area with road and road name information layered on top.

Swift 2

mapView.mapType = .Hybrid

Swift 3

mapView.mapType = .hybrid

Objective-C

_mapView.mapType = MKMapTypeHybrid;

MKMapType.hybrid example

iOS 9

.hybridFlyover

Displays a hybrid satellite image with flyover data where available.

Swift 2

mapView.mapType = .HybridFlyover

Swift 3

mapView.mapType = .hybridFlyover

Objective-C

_mapView.mapType = MKMapTypeHybridFlyover;


Got any iOS Question?