Merge branch '10-client-invisible-markers-are-still-clickable' into 'master'
Resolve "Client -- Invisible markers are still clickable" Closes #10 See merge request sgay/traque!9
This commit is contained in:
commit
9c185c241f
2 changed files with 4 additions and 8 deletions
|
@ -112,12 +112,10 @@
|
|||
markers[data.id].setIcon(self_icons[data.color]);
|
||||
else
|
||||
if(data.color == -1)
|
||||
markers[data.id].setOpacity(0);
|
||||
else{
|
||||
markers[data.id].setOpacity(1);
|
||||
markers[data.id].setLatLng([0,0]);
|
||||
else
|
||||
markers[data.id].setIcon(icons[data.color]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("moving", function(data){
|
||||
|
|
|
@ -114,12 +114,10 @@
|
|||
markers[data.id].setIcon(self_icons[data.color]);
|
||||
else
|
||||
if(data.color == -1)
|
||||
markers[data.id].setOpacity(0);
|
||||
else{
|
||||
markers[data.id].setOpacity(1);
|
||||
markers[data.id].setLatLng([0,0]);
|
||||
else
|
||||
markers[data.id].setIcon(icons[data.color]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
socket.on("moving", function(data){
|
||||
|
|
Loading…
Reference in a new issue