From 9360aa2b63c59fef5819e92438f38a5333b23737 Mon Sep 17 00:00:00 2001 From: catvayor Date: Wed, 14 Sep 2022 10:19:47 +0200 Subject: [PATCH] Solved #10 --- static/conscrit.html | 6 ++---- static/vieilleux.html | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/static/conscrit.html b/static/conscrit.html index c6b12fd..11209f1 100644 --- a/static/conscrit.html +++ b/static/conscrit.html @@ -112,11 +112,9 @@ 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]); - } } }); diff --git a/static/vieilleux.html b/static/vieilleux.html index 8c6b37d..d82d89d 100644 --- a/static/vieilleux.html +++ b/static/vieilleux.html @@ -114,11 +114,9 @@ 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]); - } } });