Update communications list on event
This commit is contained in:
parent
94b2ff2e21
commit
1075e35bca
1 changed files with 5 additions and 0 deletions
|
|
@ -55,6 +55,11 @@
|
||||||
init() {
|
init() {
|
||||||
this.loadFromAPI();
|
this.loadFromAPI();
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
SSEManager.subscribe("*", (e) => {
|
||||||
|
if (e.resource.startsWith("rmo:")) {
|
||||||
|
this.fetchCommunications();
|
||||||
|
}
|
||||||
|
});
|
||||||
const map = document.querySelector("map-multipoint");
|
const map = document.querySelector("map-multipoint");
|
||||||
map.on("load", () => {
|
map.on("load", () => {
|
||||||
map.addLayer({
|
map.addLayer({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue