Display Maps (iOS)

This article describes how to display maps using the iOS SDK.

Display Maps

MRMapViewController includes a self-contained interface for maps and directions. This makes it unnecessary for you to create your own maps interface. Initialize MRMapViewController with a valid MREditorKey to get started.

    MREditorKey *mapKey = [MREditorKey keyForMap:@"5638404075159552" app:@"5468665088573440"]; // Meridian Portland Office
    MRMapViewController *mapController = [MRMapViewController new];
    mapController.mapView.mapKey = mapKey;

MRMapViewController hosts an MRMapView and adopts the MRMapViewDelegate protocol, which handles the basic tasks delegated by MRMapView.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.