Class: TruckRouteManager

TruckRouteManager

new TruckRouteManager()

Layers/GoTruckLayer/src/TruckRouteManager.ts, line 14

Methods

checkFeatureHasChangeCods(truckId, feature){boolean}

Layers/GoTruckLayer/src/TruckRouteManager.ts, line 34

s Checks if the coordinates of a truck feature have changed since the last update.

Name Type Description
truckId number

The ID of the truck whose feature is being checked.

feature Feature.<Geometry>

The feature representing the truck, containing its geometry.

Returns:
Type Description
boolean true if the coordinates have changed since the last update or if no previous coordinates are stored; false otherwise.