diff --git a/src/guitares/pyqt5/mapbox/layer.py b/src/guitares/pyqt5/mapbox/layer.py index bb4624d..7cb83e6 100644 --- a/src/guitares/pyqt5/mapbox/layer.py +++ b/src/guitares/pyqt5/mapbox/layer.py @@ -294,7 +294,10 @@ def set_visibility(self, true_or_false): if self.layer: # Container layer for name in self.layer: - self.layer[name].set_visibility(true_or_false) + if true_or_false: + self.layer[name].show() + else: + self.layer[name].hide() else: # Data layer if true_or_false: