getLabel method

String getLabel(
  1. Route route
)

Get route label text.

Parameters

  • IN route The route whose label should be retrieved.

Returns

  • The actual label

Throws

  • An exception if it fails.

Implementation

String getLabel(final Route route) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'MapViewRouteCollection',
    'getLabel',
    args: route.pointerId,
  );

  return resultString['result'];
}