Map Kit Constants Reference

Framework
MapKit/MapKit.h
Companion guide
Declared in
MKGeometry.h
MKTypes.h

Overview

This document describes the constants found in the Map Kit framework

Constants

Null Map Rectangle

The null map rectangle

const MKMapRect MKMapRectNull;
Constants
MKMapRectNull

You can use this constant when you want to specify an invalid map rectangle.

Available in iOS 4.0 and later.

Declared in MKGeometry.h.

World Map Constants

Map constants for the two-dimensional map projection.

const MKMapSize MKMapSizeWorld;
const MKMapRect MKMapRectWorld;
Constants
MKMapSizeWorld

Specifies the width and height (in map points) of the world in the two-dimensional map projection.

Available in iOS 4.0 and later.

Declared in MKGeometry.h.

MKMapRectWorld

The map rectangle that represents the world in the two-dimensional map projection.

Available in iOS 4.0 and later.

Declared in MKGeometry.h.

Error Domain

The error domain for Map Kit.

NSString *MKErrorDomain
Constants
MKErrorDomain

The Map Kit error domain.

Available in iOS 3.0 and later.

Declared in MKTypes.h.

MKErrorCode

Error constants for the Map Kit framework.

enum MKErrorCode {
   MKErrorUnknown = 1,
   MKErrorServerFailure,
   MKErrorLoadingThrottled,
   MKErrorPlacemarkNotFound,
   MKErrorDirectionsNotFound
};
Constants
MKErrorUnknown

An unknown error occurred.

Available in iOS 3.0 and later.

Declared in MKTypes.h.

MKErrorServerFailure

The map server was unable to return the desired information.

Available in iOS 3.0 and later.

Declared in MKTypes.h.

MKErrorLoadingThrottled

The data was not loaded because data throttling is in effect. This error can occur if an app makes frequent requests for data over a short period of time.

Available in iOS 3.0 and later.

Declared in MKTypes.h.

MKErrorPlacemarkNotFound

The specified placemark could not be found.

Available in iOS 3.0 and later.

Declared in MKTypes.h.

MKErrorDirectionsNotFound

The specified directions could not be found.

Available in iOS 7.0 and later.

Declared in MKTypes.h.