Skip to content

Commit a203b1a

Browse files
mfisher87kpdavimartinRenou
committed
Flesh out the color and size sub-objects in symbology schema
Co-authored-by: Kristin Davis <[email protected]> Co-authored-by: martinRenou <[email protected]>
1 parent 5d20374 commit a203b1a

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

packages/schema/src/schema/project/layers/vectorLayer.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,21 @@
3838
},
3939
"selectedAttribute": {
4040
"type": "string",
41+
"title": "Attribute",
4142
"description": "The selected attribute for varying the color",
4243
},
4344
"colorRamp": {
4445
"type": "string",
4546
"default": "cool"
4647
},
4748
"nStops": {
48-
"type": "string",
49-
"default": "9"
49+
"type": "number",
50+
"description": "The number of segments to use when mapping colors to data values",
51+
"default": 9
5052
},
5153
"stopsDistributionMode": {
5254
"type": "string",
55+
"description": "The method of distributing segments when mapping colors to data values",
5356
"default": "equal interval",
5457
"enum": [
5558
"quantile",
@@ -58,6 +61,11 @@
5861
"pretty",
5962
"logarithmic"
6063
]
64+
},
65+
"strokeColor": {
66+
"type": "string",
67+
"description": "The color of the stroke for the symbol",
68+
"default": "#ffffff"
6169
}
6270
}
6371
},
@@ -75,11 +83,13 @@
7583
"description": "The selected attribute for varying the size",
7684
},
7785
"nStops": {
78-
"type": "string",
79-
"default": "9"
86+
"type": "number",
87+
"description": "The number of segments to use when mapping colors to data values",
88+
"default": 9
8089
},
8190
"stopsDistributionMode": {
8291
"type": "string",
92+
"description": "The method of distributing segments when mapping colors to data values",
8393
"default": "equal interval",
8494
"enum": [
8595
"quantile",
@@ -88,6 +98,16 @@
8898
"pretty",
8999
"logarithmic"
90100
]
101+
},
102+
"strokeThickness": {
103+
"type": "number",
104+
"description": "The thickness of the stroke in pixels",
105+
"default": 1.25
106+
},
107+
"symbolRadius": {
108+
"type": "number",
109+
"description": "The radius of the symbols in pixels",
110+
"default": 1
91111
}
92112
},
93113
"additionalProperties": false

0 commit comments

Comments
 (0)