createNavigationLayer static method

NavigationLayer createNavigationLayer(
  1. MapWindow mapWindow,
  2. RoadEventsLayerStyleProvider roadEventsLayerStyleProvider,
  3. NavigationStyleProvider styleProvider,
  4. Navigation navigation,
)

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.

Implementation

static NavigationLayer createNavigationLayer(
    mapkit_map_map_window.MapWindow mapWindow,
    mapkit_road_events_layer_style_provider.RoadEventsLayerStyleProvider
        roadEventsLayerStyleProvider,
    navigation_automotive_layer_styling_style_provider.NavigationStyleProvider
        styleProvider,
    navigation_automotive_navigation.Navigation navigation) {
  return _createNavigationLayer(
    mapWindow,
    roadEventsLayerStyleProvider,
    styleProvider,
    navigation,
  );
}