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:
Lubin Bailly 2022-09-14 10:29:56 +02:00
commit 9c185c241f
2 changed files with 4 additions and 8 deletions

View file

@ -112,11 +112,9 @@
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]);
}
} }
}); });

View file

@ -114,11 +114,9 @@
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]);
}
} }
}); });