YMKNavigationLayerFactory

Warning

This feature is available in the NaviKit SDK version.

class YMKNavigationLayerFactory : NSObject

Summary

Class methods

class func createNavigationLayer(with mapWindow: YMKMapWindow,
                   roadEventsLayerStyleProvider: any YMKRoadEventsLayerStyleProvider,
                                  styleProvider: any YMKNavigationStyleProvider,
                                     navigation: YMKNavigation) -> YMKNavigationLayer
Adds navigation layer on the map

Class methods

createNavigationLayer(with:roadEventsLayerStyleProvider:styleProvider:navigation:)

class func createNavigationLayer(with mapWindow: YMKMapWindow,
                   roadEventsLayerStyleProvider: any YMKRoadEventsLayerStyleProvider,
                                  styleProvider: any YMKNavigationStyleProvider,
                                     navigation: YMKNavigation) -> YMKNavigationLayer

Adds navigation layer on the map.

The class maintains a strong reference to the object in the 'roadEventsLayerStyleProvider' parameter until it (the class) is invalidated.

The class maintains a strong reference to the object in the 'styleProvider' parameter until it (the class) is invalidated.