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

TxMapRoute.

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

ts
interface TxMapRoute {
  id: string | number
  points: TxCoordinate[]
  color?: string
  width?: number
}
FieldMeaning
idUnique stable ID.
pointsRoute line coordinates in order.
colorDisplay color.
widthWidth; Vue numbers use pixels, Flutter uses logical pixels.
ts
import type { TxMapRoute } from '@tekocloud.de/tecexpress'
const example: TxMapRoute = { id: 1, points: [{ lat: 52.52, lng: 13.405 }, { lat: 52.53, lng: 13.41 }] }
console.log(example)