addMapViewRoute method

void addMapViewRoute(
  1. MapViewRoute route
)

Add or update a MapViewRoute instance in the collection.

Use this overload when you already have a MapViewRoute object. When the route is present the existing entry is updated with the values from route.

Parameters

  • route: the MapViewRoute to add or update in the collection.

See also:

  • MapViewRoute — The route with render settings and label as shown on the map.
  • add — Add a route with detailed parameters.

Implementation

void addMapViewRoute(final MapViewRoute route) {
  objectMethod(
    pointerId,
    'MapViewRouteCollection',
    'add',
    args: route.pointerId,
    dependencyId: mapPointerId,
  );
}