t×tecexpressby TeKOcloud
DEv0.7.1
API & types / FLUTTER

TxMapRoute.

Route line to draw from coordinates; it does not calculate a route.

TxMapRoute

ParameterTypeDefaultMeaning
idObjectrequiredUnique stable ID.
pointsList<TxCoordinate>requiredRoute line coordinates in order.
colorColorColors.blueDisplay color.
widthdouble3Width; Vue numbers use pixels, Flutter uses logical pixels.
dart
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);
}