Skip to content

Commit

Permalink
added import of module circle_layer_custom.js in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanormondt committed Oct 21, 2024
1 parent d5b767d commit 29570ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/guitares/pyqt5/mapbox/line_selector_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/guitares/pyqt5/mapbox/server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<script type="module" src="./js/choropleth_layer.js"></script>
<script type="module" src="./js/heatmap_layer.js"></script>
<script type="module" src="./js/circle_layer.js"></script>
<script type="module" src="./js/circle_layer_custom.js"></script>
<script type="module" src="./js/line_layer.js"></script>
<script type="module" src="./js/marker_layer.js"></script>
<script type="module" src="./js/circle_selector_layer.js"></script>
Expand Down

0 comments on commit 29570ef

Please sign in to comment.