Update templates/map.html
Browse files- templates/map.html +3 -2
templates/map.html
CHANGED
|
@@ -125,6 +125,7 @@
|
|
| 125 |
const maxZoom = mapData.maxZoom ? mapData.maxZoom : 6
|
| 126 |
const showElevation = false;
|
| 127 |
const showStaticMarkers = false
|
|
|
|
| 128 |
|
| 129 |
let currentZoom = 3;
|
| 130 |
|
|
@@ -155,8 +156,8 @@
|
|
| 155 |
};
|
| 156 |
|
| 157 |
ws.onopen = function (event) {
|
| 158 |
-
console.log(JSON.stringify({ type: "test_msg", data: "Test Message" }));
|
| 159 |
-
ws.send(JSON.stringify({ type: "
|
| 160 |
};
|
| 161 |
|
| 162 |
|
|
|
|
| 125 |
const maxZoom = mapData.maxZoom ? mapData.maxZoom : 6
|
| 126 |
const showElevation = false;
|
| 127 |
const showStaticMarkers = false
|
| 128 |
+
const wsgroup = "1234"
|
| 129 |
|
| 130 |
let currentZoom = 3;
|
| 131 |
|
|
|
|
| 156 |
};
|
| 157 |
|
| 158 |
ws.onopen = function (event) {
|
| 159 |
+
//console.log(JSON.stringify({ type: "test_msg", data: "Test Message" }));
|
| 160 |
+
ws.send(JSON.stringify({ type: "join", group: wsgroup }));
|
| 161 |
};
|
| 162 |
|
| 163 |
|