createNavigationLayerWithPresetStyleProvider static method

NavigationLayer createNavigationLayerWithPresetStyleProvider(
  1. MapWindow mapWindow,
  2. RoadEventsLayerStyleProvider roadEventsLayerStyleProvider,
  3. Navigation navigation
)

Adds navigation layer on the map using the StyleProvider set by FlutterNavigationLayerFactory.setStyleProvider.

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

Implementation

static navigation_automotive_layer_navigation_layer.NavigationLayer
    createNavigationLayerWithPresetStyleProvider(
        mapkit_map_map_window.MapWindow mapWindow,
        mapkit_road_events_layer_style_provider.RoadEventsLayerStyleProvider
            roadEventsLayerStyleProvider,
        navigation_automotive_navigation.Navigation navigation) {
  return _createNavigationLayerWithPresetStyleProvider(
    mapWindow,
    roadEventsLayerStyleProvider,
    navigation,
  );
}