Skip to content

Commit

Permalink
Files sort keys (#49)
Browse files Browse the repository at this point in the history
* Files sort keys

* Update Playwright Snapshots

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
martinRenou and github-actions[bot] authored Jul 16, 2024
1 parent 49ede6e commit e52fe9f
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 47 deletions.
94 changes: 47 additions & 47 deletions examples/test.jGIS
Original file line number Diff line number Diff line change
@@ -1,40 +1,69 @@
{
"layerTree": [
"a0044fd7-f167-445f-b3d1-620a8f94b498",
{
"layers": [
"2467576f-b527-4cb7-998d-fa1d056fb8a1",
{
"layers": [
"57ef55ef-facb-48a2-ae1d-c9c824be3e8a"
],
"name": "level 2 group"
}
],
"name": "level 1 group"
}
],
"layers": {
"2467576f-b527-4cb7-998d-fa1d056fb8a1": {
"name": "Open Street Map",
"parameters": {
"source": "699facc9-e7c4-4f38-acf1-1fd7f02d9f36"
},
"type": "RasterLayer",
"visible": true
},
"57ef55ef-facb-48a2-ae1d-c9c824be3e8a": {
"name": "Regions France",
"parameters": {
"source": "7d082e75-69d5-447a-82d8-b05cca5945ba",
"type": "line",
"color": "#e66100",
"opacity": 0.6
"opacity": 0.6,
"source": "7d082e75-69d5-447a-82d8-b05cca5945ba",
"type": "line"
},
"name": "Regions France",
"visible": true,
"type": "VectorLayer"
"type": "VectorLayer",
"visible": true
},
"a0044fd7-f167-445f-b3d1-620a8f94b498": {
"type": "RasterLayer",
"visible": true,
"name": "Open Topo Map",
"parameters": {
"source": "5fd42e3b-4681-4607-b15d-65c3a3e89b32"
}
},
"2467576f-b527-4cb7-998d-fa1d056fb8a1": {
"parameters": {
"source": "699facc9-e7c4-4f38-acf1-1fd7f02d9f36"
},
"type": "RasterLayer",
"name": "Open Street Map",
"visible": true
}
},
"options": {
"latitude": 45.83799886047626,
"longitude": 1.195999428191726,
"zoom": 4.075821017792898
},
"sources": {
"5fd42e3b-4681-4607-b15d-65c3a3e89b32": {
"name": "Open Topo Map",
"parameters": {
"maxZoom": 24.0,
"minZoom": 0.0,
"url": "https://tile.opentopomap.org/{z}/{x}/{y}.png ",
"maxZoom": 24.0
"url": "https://tile.opentopomap.org/{z}/{x}/{y}.png "
},
"type": "RasterSource"
},
"699facc9-e7c4-4f38-acf1-1fd7f02d9f36": {
"name": "Open Street Map",
"parameters": {
"maxZoom": 24.0,
"minZoom": 0.0,
"url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
},
"type": "RasterSource"
},
Expand All @@ -45,35 +74,6 @@
"valid": true
},
"type": "GeoJSONSource"
},
"699facc9-e7c4-4f38-acf1-1fd7f02d9f36": {
"type": "RasterSource",
"name": "Open Street Map",
"parameters": {
"minZoom": 0.0,
"maxZoom": 24.0,
"url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
}
}
},
"options": {
"latitude": 0,
"longitude": 0,
"zoom": 0
},
"layerTree": [
"a0044fd7-f167-445f-b3d1-620a8f94b498",
{
"name": "level 1 group",
"layers": [
"2467576f-b527-4cb7-998d-fa1d056fb8a1",
{
"name": "level 2 group",
"layers": [
"57ef55ef-facb-48a2-ae1d-c9c824be3e8a"
]
}
]
}
]
}
}
}
1 change: 1 addition & 0 deletions python/jupytergis_core/jupytergis_core/jgis_ydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def get(self) -> str:
layers_tree = self._ylayerTree.to_py()
return json.dumps(
dict(layers=layers, sources=sources, options=options, layerTree=layers_tree),
sort_keys=True,
indent=2,
)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui-tests/tests/ui.spec.ts-snapshots/Render-test-jGIS-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e52fe9f

Please sign in to comment.