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

– 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