Mac Developer Library

Developer

MapKit Framework Reference MapKit Constants Reference

Options
Deployment Target:

On This Page
Language:

MapKit Constants Reference

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import MapKit

Objective-C

@import MapKit;

This document describes the constants found in the Map Kit framework

Constants

  • The null map rectangle

    Declaration

    Swift

    let MKMapRectNull: MKMapRect

    Objective-C

    const MKMapRect MKMapRectNull;

    Constants

    • MKMapRectNull

      MKMapRectNull

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

      Available in OS X v10.9 and later.

  • Map constants for the two-dimensional map projection.

    Declaration

    Swift

    let MKMapSizeWorld: MKMapSize let MKMapRectWorld: MKMapRect

    Objective-C

    const MKMapSize MKMapSizeWorld; const MKMapRect MKMapRectWorld;

    Constants

    • MKMapSizeWorld

      MKMapSizeWorld

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

      Available in OS X v10.9 and later.

    • MKMapRectWorld

      MKMapRectWorld

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

      Available in OS X v10.9 and later.

  • The error domain for Map Kit.

    Declaration

    Swift

    let MKErrorDomain: String

    Objective-C

    NSString *MKErrorDomain

    Constants

    • MKErrorDomain

      MKErrorDomain

      The Map Kit error domain.

      Available in OS X v10.9 and later.

  • Error constants for the Map Kit framework.

    Declaration

    Swift

    enum MKErrorCode : UInt { case Unknown case ServerFailure case LoadingThrottled case PlacemarkNotFound case DirectionsNotFound }

    Objective-C

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

    Constants

    • Unknown

      MKErrorUnknown

      An unknown error occurred.

      Available in OS X v10.9 and later.

    • ServerFailure

      MKErrorServerFailure

      The map server was unable to return the desired information.

      Available in OS X v10.9 and later.

    • LoadingThrottled

      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 OS X v10.9 and later.

    • PlacemarkNotFound

      MKErrorPlacemarkNotFound

      The specified placemark could not be found.

      Available in OS X v10.9 and later.

    • DirectionsNotFound

      MKErrorDirectionsNotFound

      The specified directions could not be found.

      Available in OS X v10.9 and later.

    Import Statement

    Objective-C

    @import MapKit;

    Swift

    import MapKit

    Availability

    Available in OS X v10.9 and later.