Route line to draw from coordinates; it does not calculate a route.
interface TxMapRoute {
id: string | number
points: TxCoordinate[]
color?: string
width?: number
}| Field | Meaning |
|---|---|
| id | Unique stable ID. |
| points | Route line coordinates in order. |
| color | Display color. |
| width | Width; Vue numbers use pixels, Flutter uses logical pixels. |
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)