MMKNavigationLayer

@interface MMKNavigationLayer : NSObject

Undocumented

Summary

Instance methods

- (nullable MMKRouteView *)getViewWithRoute:(nonnull MMKDrivingRoute *)route;
Find appearance of route

- (void)selectRouteWithRoute:(nullable MMKRouteView *)route;
NavigationLayer will try to show as much info as possible about selected route

- (nullable MMKRouteView *)selectedRoute;
Undocumented

- (void)addRouteViewListenerWithRouteViewListener:
    (nonnull id<MMKRouteViewListener>)routeViewListener;

Add this listener if you wish to handle taps on routes

- (void)removeRouteViewListenerWithRouteViewListener:
    (nonnull id<MMKRouteViewListener>)routeViewListener;

Undocumented

- (void)selectRequestPointWithRequestPointIndex:(NSUInteger)requestPointIndex;
Selects a request point with specified index

- (void)deselectRequestPoint;
Deselects selected request point if any

- (void)addRequestPointListenerWithRequestPointListener:
    (nonnull id<MMKRequestPointListener>)requestPointListener;

Add this listener if you wish to handle taps on request points

- (void)removeRequestPointListenerWithRequestPointListener:
    (nonnull id<MMKRequestPointListener>)requestPointListener;

Undocumented

- (void)addBalloonViewListenerWithBalloonListener:
    (nonnull id<MMKBalloonViewListener>)balloonListener;

The class does not retain the object in the 'balloonListener' parameter

- (void)removeBalloonViewListenerWithBalloonListener:
    (nonnull id<MMKBalloonViewListener>)balloonListener;

Undocumented

- (void)addListenerWithNavigationLayerListener:
    (nonnull id<MMKNavigationLayerListener>)navigationLayerListener;

The class does not retain the object in the 'navigationLayerListener' parameter

- (void)removeListenerWithNavigationLayerListener:
    (nonnull id<MMKNavigationLayerListener>)navigationLayerListener;

Undocumented

- (void)removeFromMap;
Removes layer from map

- (void)setShowBalloonsGeometryWithEnabled:(BOOL)enabled;
for debug usage only

- (void)refreshStyle;
Force refresh style for all navigation layer objects

- (BOOL)is2DMode;
When in 2D mode: - map is switched to 2D mode - 'Free' and 'Following' camera modes have zero tilt - tilt changing gestures are disabled

Disabled by default

- (void)set2DModeWithEnabled:(BOOL)enabled;
Undocumented

Properties

@property (nonatomic, readonly, nonnull) MMKNavigation *navigation;
Undocumented

@property (nonatomic, readonly, nonnull) MMKCamera *camera;
Undocumented

@property (nonatomic, readonly) MMKRoutesSource routesSource;
Current view mode

@property (nonatomic, readonly, nonnull) NSArray<MMKRouteView *> *routes;
Routes representation on the map

@property (nonatomic, assign, unsafe_unretained, readwrite,
          getter=isShowRequestPoints) BOOL showRequestPoints;

Enabled by default

@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isIsVisible)
    BOOL isVisible;

Undocumented

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

getViewWithRoute:

- (nullable MMKRouteView *)getViewWithRoute:(nonnull MMKDrivingRoute *)route;

Find appearance of route.


selectRouteWithRoute:

- (void)selectRouteWithRoute:(nullable MMKRouteView *)route;

NavigationLayer will try to show as much info as possible about selected route. For example if road event placemarks from different routes overlap, road event from selected route will be displayed, conflict will be hidden. None or one route can be selected at the same time. Pass nil/null to unselect route.


selectedRoute

- (nullable MMKRouteView *)selectedRoute;

Undocumented


addRouteViewListenerWithRouteViewListener:

- (void)addRouteViewListenerWithRouteViewListener:
    (nonnull id<MMKRouteViewListener>)routeViewListener;

Add this listener if you wish to handle taps on routes.

The class does not retain the object in the 'routeViewListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeRouteViewListenerWithRouteViewListener:

- (void)removeRouteViewListenerWithRouteViewListener:
    (nonnull id<MMKRouteViewListener>)routeViewListener;

Undocumented


selectRequestPointWithRequestPointIndex:

- (void)selectRequestPointWithRequestPointIndex:(NSUInteger)requestPointIndex;

Selects a request point with specified index. Only one point can be selected at a time. If some other point is selected already, it will be deselected.


deselectRequestPoint

- (void)deselectRequestPoint;

Deselects selected request point if any.


addRequestPointListenerWithRequestPointListener:

- (void)addRequestPointListenerWithRequestPointListener:
    (nonnull id<MMKRequestPointListener>)requestPointListener;

Add this listener if you wish to handle taps on request points.

The class does not retain the object in the 'requestPointListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeRequestPointListenerWithRequestPointListener:

- (void)removeRequestPointListenerWithRequestPointListener:
    (nonnull id<MMKRequestPointListener>)requestPointListener;

Undocumented


addBalloonViewListenerWithBalloonListener:

- (void)addBalloonViewListenerWithBalloonListener:
    (nonnull id<MMKBalloonViewListener>)balloonListener;

The class does not retain the object in the 'balloonListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeBalloonViewListenerWithBalloonListener:

- (void)removeBalloonViewListenerWithBalloonListener:
    (nonnull id<MMKBalloonViewListener>)balloonListener;

Undocumented


addListenerWithNavigationLayerListener:

- (void)addListenerWithNavigationLayerListener:
    (nonnull id<MMKNavigationLayerListener>)navigationLayerListener;

The class does not retain the object in the 'navigationLayerListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeListenerWithNavigationLayerListener:

- (void)removeListenerWithNavigationLayerListener:
    (nonnull id<MMKNavigationLayerListener>)navigationLayerListener;

Undocumented


removeFromMap

- (void)removeFromMap;

Removes layer from map. No further operations with layer should be performed.


setShowBalloonsGeometryWithEnabled:

- (void)setShowBalloonsGeometryWithEnabled:(BOOL)enabled;

for debug usage only


refreshStyle

- (void)refreshStyle;

Force refresh style for all navigation layer objects.


is2DMode

- (BOOL)is2DMode;

When in 2D mode: - map is switched to 2D mode - 'Free' and 'Following' camera modes have zero tilt - tilt changing gestures are disabled

Disabled by default


set2DModeWithEnabled:

- (void)set2DModeWithEnabled:(BOOL)enabled;

Undocumented


Properties

@property (nonatomic, readonly, nonnull) MMKNavigation *navigation;

Undocumented


camera

@property (nonatomic, readonly, nonnull) MMKCamera *camera;

Undocumented


routesSource

@property (nonatomic, readonly) MMKRoutesSource routesSource;

Current view mode


routes

@property (nonatomic, readonly, nonnull) NSArray<MMKRouteView *> *routes;

Routes representation on the map.


showRequestPoints

@property (nonatomic, assign, unsafe_unretained, readwrite,
          getter=isShowRequestPoints) BOOL showRequestPoints;

Enabled by default.


isVisible

@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isIsVisible)
    BOOL isVisible;

Undocumented


valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.