Route line to draw from coordinates; it does not calculate a route.
TxMapRoute
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| id | Object | required | Unique stable ID. |
| points | List<TxCoordinate> | required | Route line coordinates in order. |
| color | Color | Colors.blue | Display color. |
| width | double | 3 | Width; Vue numbers use pixels, Flutter uses logical pixels. |
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);
}