Skip to content

Commit

Permalink
Symbology refactor (#193)
Browse files Browse the repository at this point in the history
* Reorganize files

* Delete hook

* Remove old files and update examples

* Have UI reflect differences for continuous

* Don't add features if they are strings

* Quick fix for radius method in graduated symbology

* Small fixes
  • Loading branch information
gjmooney authored Oct 23, 2024
1 parent 9ba24bb commit fa04fc8
Show file tree
Hide file tree
Showing 22 changed files with 1,209 additions and 380 deletions.
168 changes: 53 additions & 115 deletions examples/earthquakes.jGIS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"layerTree": [
"0959c04f-a841-4fa2-8b44-d262e89e4c9a",
"6dc9af9d-206d-42b5-9889-09758e9934b9"
"b116b76f-e040-4908-9098-a6fbea7ca5bc"
],
"layers": {
"0959c04f-a841-4fa2-8b44-d262e89e4c9a": {
Expand All @@ -12,113 +12,45 @@
"type": "RasterLayer",
"visible": true
},
"6dc9af9d-206d-42b5-9889-09758e9934b9": {
"filters": {
"appliedFilters": [],
"logicalOp": "any"
},
"b116b76f-e040-4908-9098-a6fbea7ca5bc": {
"name": "earthquakes",
"parameters": {
"color": {
"circle-fill-color": [
"interpolate",
[
"linear"
],
[
"get",
"mag"
],
0.95,
[
8.0,
29.0,
88.0,
1.0
],
1.159230769230769,
"case",
[
23.0,
41.0,
118.0,
1.0
],
1.3684615384615386,
[
37.0,
52.0,
148.0,
1.0
],
1.577692307692308,
[
34.0,
94.0,
168.0,
1.0
],
1.7869230769230768,
[
32.0,
120.0,
180.0,
1.0
],
1.9961538461538462,
[
29.0,
145.0,
192.0,
1.0
],
2.2053846153846157,
[
65.0,
182.0,
196.0,
1.0
],
2.4146153846153844,
[
96.0,
194.0,
192.0,
1.0
"==",
[
"get",
"tsunami"
],
0.0
],
2.623846153846154,
[
127.0,
205.0,
187.0,
125.0,
0.0,
179.0,
1.0
],
2.863076923076923,
[
199.0,
233.0,
180.0,
"==",
[
"get",
"tsunami"
],
1.0
],
3.1246153846153852,
[
218.0,
241.0,
199.0,
1.0
],
3.491538461538462,
[
237.0,
248.0,
217.0,
147.0,
255.0,
0.0,
1.0
],
4.326153846153848,
[
255.0,
255.0,
217.0,
1.0
0.0,
0.0,
0.0,
0.0
]
],
"circle-radius": [
Expand All @@ -130,20 +62,33 @@
"get",
"mag"
],
1.0,
1.0,
2.0,
5.0,
2.0,
3.0,
3.0,
4.0,
4.0,
10.0,
5.0,
5.0,
6.0,
15.0
6.0
],
"circle-stroke-color": "#986a44",
"circle-stroke-color": "#3399CC",
"circle-stroke-line-cap": "round",
"circle-stroke-line-join": "round",
"circle-stroke-width": 1.25
},
"opacity": 1.0,
"source": "4a74edbc-1939-40e3-a0ac-28b2e1d87846",
"source": "dc048820-75cd-4b8d-a1fb-91642901cd82",
"symbologyState": {
"colorRamp": "cool",
"mode": "",
"nClasses": "",
"renderType": "Categorized",
"value": "tsunami"
},
"type": "circle"
},
"type": "VectorLayer",
Expand All @@ -153,10 +98,10 @@
"options": {
"bearing": 0.0,
"extent": [
-14115404.754324596,
-3578744.7791191125,
-9601917.6529872,
9131405.218514971
-14291047.530673811,
-3536164.7121253638,
-9426274.876637986,
9088825.15152122
],
"latitude": 24.187972965810673,
"longitude": -106.52816608439294,
Expand All @@ -165,20 +110,6 @@
"zoom": 3.8783091860507373
},
"sources": {
"4a74edbc-1939-40e3-a0ac-28b2e1d87846": {
"name": "Custom GeoJSON Layer Source",
"parameters": {
"path": "eq.json"
},
"type": "GeoJSONSource"
},
"4aab05ec-5a57-454b-9ba5-31bcf272feda": {
"name": "Custom GeoJSON Layer Source",
"parameters": {
"path": "france_regions.json"
},
"type": "GeoJSONSource"
},
"a7ed9785-8797-4d6d-a6a9-062ce78ba7ba": {
"name": "OpenStreetMap.Mapnik",
"parameters": {
Expand All @@ -190,6 +121,13 @@
"urlParameters": {}
},
"type": "RasterSource"
},
"dc048820-75cd-4b8d-a1fb-91642901cd82": {
"name": "Custom GeoJSON Layer Source",
"parameters": {
"path": "eq.json"
},
"type": "GeoJSONSource"
}
}
}
Loading

0 comments on commit fa04fc8

Please sign in to comment.