updatePolyline static method

void updatePolyline(
  1. PolylineMapObject polyline,
  2. DrivingRoute route,
  3. JamStyle style, {
  4. required bool updateGeometry,
})

Sets a new geometry and colors for a polyline. If style.enabled = false, the polyline is drawn using the color for the Unknown traffic jam type. If updateGeometry = false, but route geometry differs from polyline geometry, then behaviour is undefined.

Implementation

static void updatePolyline(
  mapkit_map_polyline.PolylineMapObject polyline,
  directions_driving_route.DrivingRoute route,
  mapkit_navigation_jam_style.JamStyle style, {
  required core.bool updateGeometry,
}) {
  _updatePolyline(
    polyline,
    route,
    style,
    updateGeometry: updateGeometry,
  );
}