Skip to content

Commit

Permalink
fix: show correct icons in barnim scenario (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelger authored Oct 9, 2024
1 parent 9d9d593 commit 4f7f1d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion fed/mosaic-output/src/main/resources/web/visualizer-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ const Vehicle = {
*/
createStyle() {
let style = 'unknown'
if (this.vehicleClass === 'Car') {
if (this.vehicleClass === 'Car'
|| this.vehicleClass === 'ElectricVehicle'
|| this.vehicleClass === 'AutomatedVehicle'
|| this.vehicleClass === 'Taxi'
|| this.vehicleClass === 'HighOccupancyVehicle'
) {
style = 'car'
if (this.state.equipped) {
style = 'car-equipped'
Expand Down Expand Up @@ -626,6 +631,7 @@ const WebSocketClient = (function() {
} else if (data.VehiclesRemove) {
data.VehiclesRemove.forEach(map.removeUnit)
} else if (data.VehicleRegistration) {
console.log(JSON.stringify(data.VehicleRegistration))
// determine if vehicle is equipped with an application
let equipped = data.VehicleRegistration.vehicleMapping.applications.length > 0;
let vClass = data.VehicleRegistration.vehicleMapping.vehicleType.vehicleClass;
Expand Down
Loading

0 comments on commit 4f7f1d7

Please sign in to comment.