added image and made it work with 1 client
This commit is contained in:
parent
17b4df5c4b
commit
58de2f159c
1 changed files with 2 additions and 2 deletions
4
map.html
4
map.html
|
@ -85,8 +85,8 @@
|
||||||
socket.on("setName", function(data){
|
socket.on("setName", function(data){
|
||||||
console.log("setName", data);
|
console.log("setName", data);
|
||||||
names[data.id] = data.name;
|
names[data.id] = data.name;
|
||||||
if(data.id in markers)
|
//if(data.id in markers)
|
||||||
markers[data.id].setIcon(icons[data.color]);
|
// markers[data.id].setIcon(icons[data.color]);
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("changeColor", function(data){
|
socket.on("changeColor", function(data){
|
||||||
|
|
Loading…
Reference in a new issue