Auto-reload signal data when a new signal is created

This commit is contained in:
Eli Ribble 2026-03-20 18:03:05 +00:00
parent e88f40793f
commit f09533c742
No known key found for this signature in database

View file

@ -81,6 +81,11 @@
init() {
this.loadData();
document.addEventListener("DOMContentLoaded", () => {
SSEManager.subscribe("*", (e) => {
if (e.resource == "sync:signal") {
this.loadData();
}
});
const map = document.querySelector("map-multipoint");
map.on("load", () => {
map.addLayer({