From 29570efa312d2495be7173e3dc4df2a2b0694fca Mon Sep 17 00:00:00 2001 From: maartenvanormondt <82946105+maartenvanormondt@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:50:51 -0400 Subject: [PATCH] added import of module circle_layer_custom.js in index.html --- src/guitares/pyqt5/mapbox/line_selector_layer.py | 8 ++++++-- src/guitares/pyqt5/mapbox/server/index.html | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) 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 @@ +