diff --git a/src/guitares/pyqt5/mapbox/line_selector_layer.py b/src/guitares/pyqt5/mapbox/line_selector_layer.py index ef9f015..166344a 100644 --- a/src/guitares/pyqt5/mapbox/line_selector_layer.py +++ b/src/guitares/pyqt5/mapbox/line_selector_layer.py @@ -53,7 +53,9 @@ def set_selected_index(self, index): def activate(self): - self.mapbox.runjs("./js/geojson_layer_line.js", "setPaintProperties", arglist=[self.map_id, + # The line_selector_layer has no setPaintProperties yet. + return + self.mapbox.runjs("./js/line_selector_layer.js", "setPaintProperties", arglist=[self.map_id, self.line_color, self.line_width, self.line_style, @@ -64,7 +66,9 @@ def activate(self): self.line_opacity_selected]) def deactivate(self): - self.mapbox.runjs("./js/geojson_layer_line.js", "setPaintProperties", arglist=[self.map_id, + # The line_selector_layer has no setPaintProperties yet. + return + self.mapbox.runjs("./js/line_selector_layer.js", "setPaintProperties", arglist=[self.map_id, self.line_color_inactive, self.line_width_inactive, self.line_style_inactive, diff --git a/src/guitares/pyqt5/mapbox/server/index.html b/src/guitares/pyqt5/mapbox/server/index.html index 574013e..c87ddd6 100644 --- a/src/guitares/pyqt5/mapbox/server/index.html +++ b/src/guitares/pyqt5/mapbox/server/index.html @@ -21,6 +21,7 @@ +