YMKNavigationLayer

class YMKNavigationLayer : NSObject

Undocumented

Summary

Instance methods

func getViewWith( route: YMKDrivingRoute) -> YMKRouteView_?
Find appearance of route

func selectRoute(withRoute route: YMKRouteView?)
NavigationLayer will try to show as much info as possible about selected route

func selectedRoute() -> YMKRouteView?
Undocumented

func addRouteViewListener(with routeViewListener: YMKRouteViewListener)
Add this listener if you wish to handle taps on routes

func removeRouteViewListener(with routeViewListener: YMKRouteViewListener)
Undocumented

func selectRequestPoint(withRequestPointIndex requestPointIndex: UInt)
Selects a request point with specified index

func deselectRequestPoint()
Deselects selected request point if any

func addRequestPointListener(with requestPointListener: YMKRequestPointListener)
Add this listener if you wish to handle taps on request points

func removeRequestPointListener(with requestPointListener: YMKRequestPointListener)
Undocumented

func addBalloonViewListener(withBalloonListener balloonListener: YMKBalloonViewListener)
The class does not retain the object in the 'balloonListener' parameter

func removeBalloonViewListener(withBalloonListener balloonListener: YMKBalloonViewListener)
Undocumented

func addListener(with navigationLayerListener: YMKNavigationLayerListener)
The class does not retain the object in the 'navigationLayerListener' parameter

func removeListener(with navigationLayerListener: YMKNavigationLayerListener)
Undocumented

func removeFromMap()
Removes layer from map

func setShowBalloonsGeometryWithEnabled(_ enabled: Bool)
for debug usage only

func refreshStyle()
Force refresh style for all navigation layer objects

func is2DMode() -> Bool
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

func set2DMode(withEnabled enabled: Bool)
Undocumented

Properties

var navigationYMKNavigation { get }
Undocumented

var cameraYMKCamera { get }
Undocumented

var routesSourceYMKRoutesSource { get }
Current view mode

var routes: [YMKRouteView] { get }
Routes representation on the map

var isShowRequestPoints: Bool { get set }
Enabled by default

var isIsVisible: Bool { get set }
Undocumented

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

getViewWith(_:)

func getViewWith( route: YMKDrivingRoute) -> YMKRouteView_?

Find appearance of route.


selectRoute(withRoute:)

func selectRoute(withRoute route: YMKRouteView?)

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()

func selectedRoute() -> YMKRouteView?

Undocumented


addRouteViewListener(with:)

func addRouteViewListener(with routeViewListener: YMKRouteViewListener)

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.


removeRouteViewListener(with:)

func removeRouteViewListener(with routeViewListener: YMKRouteViewListener)

Undocumented


selectRequestPoint(withRequestPointIndex:)

func selectRequestPoint(withRequestPointIndex requestPointIndex: UInt)

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()

func deselectRequestPoint()

Deselects selected request point if any.


addRequestPointListener(with:)

func addRequestPointListener(with requestPointListener: YMKRequestPointListener)

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.


removeRequestPointListener(with:)

func removeRequestPointListener(with requestPointListener: YMKRequestPointListener)

Undocumented


addBalloonViewListener(withBalloonListener:)

func addBalloonViewListener(withBalloonListener balloonListener: YMKBalloonViewListener)

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.


removeBalloonViewListener(withBalloonListener:)

func removeBalloonViewListener(withBalloonListener balloonListener: YMKBalloonViewListener)

Undocumented


addListener(with:)

func addListener(with navigationLayerListener: YMKNavigationLayerListener)

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.


removeListener(with:)

func removeListener(with navigationLayerListener: YMKNavigationLayerListener)

Undocumented


removeFromMap()

func removeFromMap()

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


setShowBalloonsGeometryWithEnabled(_:)

func setShowBalloonsGeometryWithEnabled(_ enabled: Bool)

for debug usage only


refreshStyle()

func refreshStyle()

Force refresh style for all navigation layer objects.


is2DMode()

func is2DMode() -> Bool

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


set2DMode(withEnabled:)

func set2DMode(withEnabled enabled: Bool)

Undocumented


Properties

var navigation: YMKNavigation { get }

Undocumented


camera

var camera: YMKCamera { get }

Undocumented


routesSource

var routesSource: YMKRoutesSource { get }

Current view mode


routes

var routes: [YMKRouteView] { get }

Routes representation on the map.


isShowRequestPoints

var isShowRequestPoints: Bool { get set }

Enabled by default.


isIsVisible

var isIsVisible: Bool { get set }

Undocumented


isValid

var isValid: Bool { get }

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.


Предыдущая
Следующая