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){
|
||||
console.log("setName", data);
|
||||
names[data.id] = data.name;
|
||||
if(data.id in markers)
|
||||
markers[data.id].setIcon(icons[data.color]);
|
||||
//if(data.id in markers)
|
||||
// markers[data.id].setIcon(icons[data.color]);
|
||||
});
|
||||
|
||||
socket.on("changeColor", function(data){
|
||||
|
|
Loading…
Reference in a new issue