Sebastiankay commited on
Commit
b73aa85
·
verified ·
1 Parent(s): 8e9275d

Update templates/map.html

Browse files
Files changed (1) hide show
  1. 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: "test_msg", data: "Test Message" }));
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