Display device sensor information in the device info tab

pull/51/head
Starbeamrainbowlabs 3 years ago
parent 3e90c7cf8d
commit 10086bdb09
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 8
      client_src/js/LayerDeviceMarkers.mjs

@ -134,6 +134,14 @@ class LayerDeviceMarkers extends Emitter {
case "location":
value = `(${value[0]}, ${value[1]})`;
break;
case "sensors":
value = CreateElement("table",
...value.map((sensor) => CreateElement("tr",
CreateElement("td", sensor.type),
CreateElement("td", sensor.description)
))
);
break;
default: value = value.toString(); break;
}
}

Loading…
Cancel
Save