This commit is contained in:
catvayor 2022-09-14 10:19:47 +02:00
parent 18991a60de
commit 9360aa2b63
2 changed files with 4 additions and 8 deletions

View file

@ -112,12 +112,10 @@
markers[data.id].setIcon(self_icons[data.color]); markers[data.id].setIcon(self_icons[data.color]);
else else
if(data.color == -1) if(data.color == -1)
markers[data.id].setOpacity(0); markers[data.id].setLatLng([0,0]);
else{ else
markers[data.id].setOpacity(1);
markers[data.id].setIcon(icons[data.color]); markers[data.id].setIcon(icons[data.color]);
} }
}
}); });
socket.on("moving", function(data){ socket.on("moving", function(data){

View file

@ -114,12 +114,10 @@
markers[data.id].setIcon(self_icons[data.color]); markers[data.id].setIcon(self_icons[data.color]);
else else
if(data.color == -1) if(data.color == -1)
markers[data.id].setOpacity(0); markers[data.id].setLatLng([0,0]);
else{ else
markers[data.id].setOpacity(1);
markers[data.id].setIcon(icons[data.color]); markers[data.id].setIcon(icons[data.color]);
} }
}
}); });
socket.on("moving", function(data){ socket.on("moving", function(data){