Skip to content

Commit

Permalink
Hotfix qgis loader for vector tile layer (#160)
Browse files Browse the repository at this point in the history
* Hotfix qgis loader for vector tile layer

* Fix Python test
  • Loading branch information
martinRenou authored Sep 24, 2024
1 parent 5cf5759 commit 81e1505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/jupytergis_qgis/jupytergis_qgis/qgis_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def qgis_layer_to_jgis(
pass
# TODO Load style properly
layer_parameters.update(type="fill")
layer_parameters.update(color=[])

if layer_type is None:
print(f"JUPYTERGIS - Enable to load layer type {type(layer)}")
Expand Down
1 change: 1 addition & 0 deletions python/jupytergis_qgis/jupytergis_qgis/tests/test_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def test_qgis_saver():
"name": "Vector Tile Layer",
"parameters": {
"opacity": 1.0,
'color': [],
"source": source_ids[2],
"sourceLayer": "bingmlbuildings",
"type": "fill",
Expand Down

0 comments on commit 81e1505

Please sign in to comment.