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:
- MapViewRoutesCollection.getLabel — Retrieve the label text for a given route.
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 vialabelIconswhen the route was added.
Also see:
- MapViewRoutesCollection.setLabel — Set the label text for a given route.
Implementation
set labelText(final String text) {
_mapViewRouteCollection.setLabel(route, text);
}