t×tecexpressby TeKOcloud
ENv0.7.1
API & Datentypen / VUE

TxMapRoute.

Darzustellende Routenlinie aus Koordinaten; berechnet keine Route.

ts
interface TxMapRoute {
  id: string | number
  points: TxCoordinate[]
  color?: string
  width?: number
}
FeldBedeutung
idEindeutige stabile ID.
pointsKoordinaten der Routenlinie in Reihenfolge.
colorDarstellungsfarbe.
widthBreite; Vue-Zahlen in Pixeln, Flutter in logischen Pixeln.
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)