MMKNavigationLayer
- Summary
- Instance methods
- getViewWithRoute:
- selectRouteWithRoute:
- selectedRoute
- addRouteViewListenerWithRouteViewListener:
- removeRouteViewListenerWithRouteViewListener:
- selectRequestPointWithRequestPointIndex:
- deselectRequestPoint
- addRequestPointListenerWithRequestPointListener:
- removeRequestPointListenerWithRequestPointListener:
- addBalloonViewListenerWithBalloonListener:
- removeBalloonViewListenerWithBalloonListener:
- addListenerWithNavigationLayerListener:
- removeListenerWithNavigationLayerListener:
- removeFromMap
- setShowBalloonsGeometryWithEnabled:
- refreshStyle
- is2DMode
- set2DModeWithEnabled:
- Properties
@interface MMKNavigationLayer : NSObject |
Undocumented
Summary
Instance methods
- (nullable MMKRouteView *)getViewWithRoute:(nonnull MMKDrivingRoute *)route; |
- (void)selectRouteWithRoute:(nullable MMKRouteView *)route; |
- (nullable MMKRouteView *)selectedRoute; |
- (void)addRouteViewListenerWithRouteViewListener: |
- (void)removeRouteViewListenerWithRouteViewListener: |
- (void)selectRequestPointWithRequestPointIndex:(NSUInteger)requestPointIndex; |
- (void)deselectRequestPoint; |
- (void)addRequestPointListenerWithRequestPointListener: |
- (void)removeRequestPointListenerWithRequestPointListener: |
- (void)addBalloonViewListenerWithBalloonListener: |
- (void)removeBalloonViewListenerWithBalloonListener: |
- (void)addListenerWithNavigationLayerListener: |
- (void)removeListenerWithNavigationLayerListener: |
- (void)removeFromMap; |
- (void)setShowBalloonsGeometryWithEnabled:(BOOL)enabled; |
- (void)refreshStyle; |
- (BOOL)is2DMode; Disabled by default |
- (void)set2DModeWithEnabled:(BOOL)enabled; |
Properties
@property (nonatomic, readonly, nonnull) MMKNavigation *navigation; |
@property (nonatomic, readonly, nonnull) MMKCamera *camera; |
@property (nonatomic, readonly) MMKRoutesSource routesSource; |
@property (nonatomic, readonly, nonnull) NSArray<MMKRouteView *> *routes; |
@property (nonatomic, assign, unsafe_unretained, readwrite, |
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isIsVisible) |
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
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: |
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: |
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: |
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: |
Undocumented
addBalloonViewListenerWithBalloonListener:
- (void)addBalloonViewListenerWithBalloonListener: |
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: |
Undocumented
addListenerWithNavigationLayerListener:
- (void)addListenerWithNavigationLayerListener: |
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: |
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
navigation
@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, |
Enabled by default.
isVisible
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isIsVisible) |
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.