labelText property

String get labelText

Label text currently shown for this map view route.

Returns

  • String: the label text displayed for the route. Returns an empty string when no label is set.

See also:

Implementation

String get labelText {
  return _mapViewRouteCollection.getLabel(route);
}
set labelText (String text)

Update the label text for this route.

Parameters

  • text: label text to set. Use icon placeholders %<index>% to embed icons previously supplied via labelIcons when the route was added.

Also see:

Implementation

set labelText(final String text) {
  _mapViewRouteCollection.setLabel(route, text);
}