Darzustellende Routenlinie aus Koordinaten; berechnet keine Route.
TxMapRoute
| Parameter | Typ | Standard | Bedeutung |
|---|---|---|---|
| id | Object | erforderlich | Eindeutige stabile ID. |
| points | List<TxCoordinate> | erforderlich | Koordinaten der Routenlinie in Reihenfolge. |
| color | Color | Colors.blue | Darstellungsfarbe. |
| width | double | 3 | Breite; Vue-Zahlen in Pixeln, Flutter in logischen Pixeln. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const route = TxMapRoute(id: 'walk', points: [TxCoordinate(52.52, 13.405), TxCoordinate(52.53, 13.41)]);
print(route.points.length);
}