MRMapViewController Class Reference

Inherits from UIViewController
Conforms to MRMapViewDelegate
Declared in MRMapViewController.h

Overview

A view controller implementing MRMapViewDelegate that handles all essential MRMapView tasks and events.

  mapView

The map view this controller is responsible for.

@property (nonnull, nonatomic, strong) MRMapView *mapView

Declared In

MRMapViewController.h

  pendingDestination

If set, this controller will initiate directions to the specified destination as soon as the map view is displayed.

@property (nullable, nonatomic, strong) MRPlacemark *pendingDestination

Declared In

MRMapViewController.h

  sheetDelegate

Provides the data and actions related to the placemark annotation sheet.

@property (nullable, nonatomic, strong) id<MRDMapViewControllerDelegate> sheetDelegate

Declared In

MRMapViewController.h

  silenceNoRouteFoundAlerts

Allow for silencing no route found alerts. Default value is NO

@property (nonatomic, assign) BOOL silenceNoRouteFoundAlerts

Declared In

MRMapViewController.h

  shouldIndexAnnotations

Automatically index all placemarks after they’ve been loaded Default value is YES if disableCoreSpotlightIndexing is NO on your MRConfig

@property (nonatomic, assign) BOOL shouldIndexAnnotations

Declared In

MRMapViewController.h

– initWithEditorKey:

A convenient initializer to add an associated editor key along with instantiation.

- (_Nullable instancetype)initWithEditorKey:(MREditorKey *_Nonnull)key

Parameters

key

An instance of MREditorKey

Return Value

An instance of a MRMapViewController

Declared In

MRMapViewController.h

– initWithEditorKey:isChildViewController:

A convenient initializer to add an associated editor key along with instantiation.

- (_Nullable instancetype)initWithEditorKey:(MREditorKey *_Nonnull)key isChildViewController:(BOOL)isChild

Parameters

key

An instance of MREditorKey

isChild

tells the view controller it should be treated as being inside a subview as a child view controller. This will manipulate the style of the sheet so it does not slide up from the bottom but appears over the subview itself.

Return Value

An instance of a MRMapViewController

Declared In

MRMapViewController.h

– startDirectionsToPlacemark:

Begins directions to the given Placemark from the user’s current location.

- (void)startDirectionsToPlacemark:(MRPlacemark *_Nonnull)placemark

Parameters

placemark

The destination for the route.

Declared In

MRMapViewController.h

– startDirectionsToFriend:

Begins directions to the given friend from the user’s current location.

- (void)startDirectionsToFriend:(MRFriend *_Nonnull)friend_

Parameters

friend_

The destination for the route.

Declared In

MRMapViewController.h

– startDirectionsToPlacemark:fromPlacemark:

Begins directions from one given Placemark to another.

- (void)startDirectionsToPlacemark:(MRPlacemark *_Nonnull)placemark fromPlacemark:(MRPlacemark *_Nullable)fromPlacemark

Parameters

placemark

The destination for the route.

fromPlacemark

The starting point for the route.

Declared In

MRMapViewController.h