Skip to content

Commit 22f1562

Browse files
martinRenoupre-commit-ci[bot]arjxn-py
authored
Cleanup examples (#822)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: arjxn-py <[email protected]>
1 parent 4767259 commit 22f1562

26 files changed

+257
-238
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ jobs:
285285
working-directory: lite
286286
run: |
287287
set -eux
288-
mkdir -p content && cp ../examples/*.jGIS ../examples/*.qgz ../examples/*.json ../examples/*.tif ../examples/*.zip ../examples/*.ipynb ../examples/*.gif ./content
288+
mkdir -p content && cp ../examples/*.jGIS ../examples/*.qgz ../examples/*.geojson ../examples/*.tif ../examples/*.zip ../examples/*.ipynb ../examples/*.gif ./content
289289
jupyter lite build --contents content --output-dir dist
290290
291291
- name: Upload Lite artifacts

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
jupyterlite_contents = [
3838
"../examples/*.jGIS",
39-
"../examples/*.json",
39+
"../examples/*.geojson",
4040
"../examples/*.zip",
4141
"../examples/*.gif",
4242
"../examples/*.geojson",

examples/Notebook.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"metadata": {},
6969
"outputs": [],
7070
"source": [
71-
"doc.add_geojson_layer(path=\"france_regions.json\")"
71+
"doc.add_geojson_layer(path=\"france_regions.geojson\")"
7272
]
7373
},
7474
{

examples/buildings.jGIS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"layers": {
77
"148f2fb3-3077-4dcb-8d70-831570d5021f": {
8-
"name": "Vector Tile Source Layer",
8+
"name": "Buildings Vector Tile",
99
"parameters": {
1010
"color": "#086600",
1111
"opacity": 1.0,
@@ -28,10 +28,10 @@
2828
"options": {
2929
"bearing": 0.0,
3030
"extent": [
31-
-9930595.367295777,
32-
4891676.859666935,
33-
-9581770.905804692,
34-
5390490.092902952
31+
-10032886.560286574,
32+
4929317.720009053,
33+
-9479479.712813895,
34+
5352849.232560834
3535
],
3636
"latitude": 41.86704023051257,
3737
"longitude": -87.64128426232207,

examples/buildings.qgz

63 Bytes
Binary file not shown.

examples/earthquakes.jGIS

Lines changed: 161 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,172 @@
99
"appliedFilters": [],
1010
"logicalOp": "all"
1111
},
12-
"name": "Custom GeoJSON Layer",
12+
"name": "Earthquakes",
1313
"parameters": {
1414
"color": {
15-
"circle-fill-color": "#f66151",
15+
"circle-fill-color": [
16+
"interpolate",
17+
[
18+
"linear"
19+
],
20+
[
21+
"get",
22+
"mag"
23+
],
24+
1.7444444444444445,
25+
[
26+
125.0,
27+
0.0,
28+
179.0,
29+
1.0
30+
],
31+
2.5388888888888888,
32+
[
33+
116.0,
34+
0.0,
35+
218.0,
36+
1.0
37+
],
38+
3.333333333333333,
39+
[
40+
98.0,
41+
74.0,
42+
237.0,
43+
1.0
44+
],
45+
4.127777777777777,
46+
[
47+
68.0,
48+
146.0,
49+
231.0,
50+
1.0
51+
],
52+
4.922222222222222,
53+
[
54+
0.0,
55+
204.0,
56+
197.0,
57+
1.0
58+
],
59+
5.716666666666666,
60+
[
61+
0.0,
62+
247.0,
63+
146.0,
64+
1.0
65+
],
66+
6.51111111111111,
67+
[
68+
0.0,
69+
255.0,
70+
88.0,
71+
1.0
72+
],
73+
7.3055555555555545,
74+
[
75+
40.0,
76+
255.0,
77+
8.0,
78+
1.0
79+
],
80+
8.1,
81+
[
82+
147.0,
83+
255.0,
84+
0.0,
85+
1.0
86+
]
87+
],
1688
"circle-radius": 5.0,
1789
"circle-stroke-color": "#62a0ea",
1890
"circle-stroke-line-cap": "round",
1991
"circle-stroke-line-join": "round",
20-
"circle-stroke-width": 1.25
92+
"circle-stroke-width": 1.25,
93+
"fill-color": [
94+
"interpolate",
95+
[
96+
"linear"
97+
],
98+
[
99+
"get",
100+
"mag"
101+
],
102+
1.7444444444444445,
103+
[
104+
125.0,
105+
0.0,
106+
179.0,
107+
1.0
108+
],
109+
2.5388888888888888,
110+
[
111+
116.0,
112+
0.0,
113+
218.0,
114+
1.0
115+
],
116+
3.333333333333333,
117+
[
118+
98.0,
119+
74.0,
120+
237.0,
121+
1.0
122+
],
123+
4.127777777777777,
124+
[
125+
68.0,
126+
146.0,
127+
231.0,
128+
1.0
129+
],
130+
4.922222222222222,
131+
[
132+
0.0,
133+
204.0,
134+
197.0,
135+
1.0
136+
],
137+
5.716666666666666,
138+
[
139+
0.0,
140+
247.0,
141+
146.0,
142+
1.0
143+
],
144+
6.51111111111111,
145+
[
146+
0.0,
147+
255.0,
148+
88.0,
149+
1.0
150+
],
151+
7.3055555555555545,
152+
[
153+
40.0,
154+
255.0,
155+
8.0,
156+
1.0
157+
],
158+
8.1,
159+
[
160+
147.0,
161+
255.0,
162+
0.0,
163+
1.0
164+
]
165+
],
166+
"stroke-color": "#62a0ea",
167+
"stroke-width": 1.25
21168
},
22169
"opacity": 1.0,
23170
"source": "348d85fa-3a71-447f-8a64-e283ec47cc7c",
24171
"symbologyState": {
25-
"renderType": "Single Symbol"
172+
"colorRamp": "cool",
173+
"method": "color",
174+
"mode": "equal interval",
175+
"nClasses": "9",
176+
"renderType": "Graduated",
177+
"value": "mag"
26178
},
27179
"type": "circle"
28180
},
@@ -42,10 +194,10 @@
42194
"options": {
43195
"bearing": 0.0,
44196
"extent": [
45-
-15808389.545988183,
46-
-6461894.596411711,
47-
-846988.1649800241,
48-
14932662.897352839
197+
-18039043.293897964,
198+
-4847443.5412946865,
199+
1383665.5829297584,
200+
13318211.842235815
49201
],
50202
"latitude": 35.52446437432016,
51203
"longitude": -74.80890180273175,
@@ -58,7 +210,7 @@
58210
"348d85fa-3a71-447f-8a64-e283ec47cc7c": {
59211
"name": "Custom GeoJSON Layer Source",
60212
"parameters": {
61-
"path": "eq.json"
213+
"path": "eq.geojson"
62214
},
63215
"type": "GeoJSONSource"
64216
},
File renamed without changes.

examples/europe_geotiff.jGIS

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)