Skip to content
Draft
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"opacity": {
"type": "number",
"description": "The opacity of the source",
"description": "The opacity of the layer",
"default": 1,
"multipleOf": 0.1,
"minimum": 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/src/schema/project/layers/imageLayer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"opacity": {
"type": "number",
"description": "The opacity of the source",
"description": "The opacity of the layer",
"default": 1,
"multipleOf": 0.1,
"minimum": 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/src/schema/project/layers/rasterLayer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"opacity": {
"type": "number",
"description": "The opacity of the source",
"description": "The opacity of the layer",
"default": 1,
"multipleOf": 0.1,
"minimum": 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"type": "object",
"description": "The state of the GeoTiff layer's multiband coloring symbology options",
"required": [],
"additionalProperties": false,
"properties": {
"type": {
"const": "Multiband"
},
"red": {
"type": "string",
"description": "The name of the band used for the red channel."
},
"green": {
"type": "string",
"description": "The name of the band used for the green channel."
},
"blue": {
"type": "string",
"description": "The name of the band used for the blue channel."
},
"alpha": {
"type": "string",
"description": "The name of the band used for the alpha channel."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "object",
"description": "The state of the GeoTiff layer's single band coloring symbology options",
"required": [],
"additionalProperties": false,
"properties": {
"type": {
"const": "Singleband"
},
"band": {
"type": "string",
"description": "The name of the band used for coloring."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "IVectorCanonicalColor",
"description": "The state of the layer's canonical color symbology options",
"type": "object",
"required": ["selectedAttribute"],
"additionalProperties": false,
"properties": {
"type": {
"const": "Canonical"
},
"selectedAttribute": {
"type": "string",
"description": "The selected attribute for canonical color mapping"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "IVectorCategorizedColor",
"description": "The state of the layer's categorized color symbology options",
"type": "object",
"required": ["selectedAttribute"],
"additionalProperties": false,
"properties": {
"type": {
"const": "Categorized"
},
"selectedAttribute": {
"type": "string",
"description": "The selected attribute for categorizing the color"
},
"colorRamp": {
"type": "string",
"default": "cool"
},
"stopsValues": {
"type": "object",
"description": "The mapping of category values to color values",
"patternProperties": {
".*": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "The hex color value for the category, where the key is the category value"
}
}
},
"strokeColor": {
"type": "string",
"description": "The color of the stroke for the symbol",
"default": "#ffffff"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "IVectorCategorizedSize",
"description": "The state of the layer's categorized size symbology options",
"type": "object",
"required": ["selectedAttribute"],
"additionalProperties": false,
"properties": {
"type": {
"const": "Categorized"
},
"selectedAttribute": {
"type": "string",
"description": "The selected attribute for categorizing the size"
},
"stopsValues": {
"type": "object",
"description": "The mapping of category values to size values",
"patternProperties": {
".*": {
"type": "number",
"description": "The size value in pixels for the category, where the key is the category value"
}
}
},
"strokeThickness": {
"type": "number",
"description": "The thickness of the stroke in pixels",
"default": 1.25
},
"symbolRadius": {
"type": "number",
"description": "The radius of the symbols in pixels",
"default": 1
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"title": "IVectorGraduatedColor",
"description": "The state of the layer's graduated color symbology options",
"type": "object",
"required": ["selectedAttribute", "colorRamp"],
"additionalProperties": false,
"properties": {
"type": {
"const": "Graduated"
},
"selectedAttribute": {
"type": "string",
"description": "The selected attribute for varying the color"
},
"colorRamp": {
"type": "string",
"default": "cool"
},
"nStops": {
"type": "number",
"description": "The number of segments to use when mapping colors to data values",
"default": 9
},
"stopsDistributionMode": {
"type": "string",
"description": "The method of distributing segments when mapping colors to data values",
"default": "equal interval",
"enum": [
"quantile",
"equal interval",
"jenks",
"pretty",
"logarithmic"
]
},
"stopsValues": {
"type": "object",
"description": "The mapping of input data values to color values",
"patternProperties": {
"^[0-9]+$": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "The hex color value at the stop index, where the key is the index of the stop"
}
}
},
"strokeColor": {
"type": "string",
"description": "The color of the stroke for the symbol",
"default": "#ffffff"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"title": "IVectorGraduatedSize",
"description": "The state of the layer's graduated size symbology options",
"type": "object",
"required": ["selectedAttribute"],
"additionalProperties": false,
"properties": {
"type": {
"const": "Graduated"
},
"selectedAttribute": {
"type": "string",
"description": "The selected attribute for varying the size"
},
"nStops": {
"type": "number",
"description": "The number of segments to use when mapping size to data values",
"default": 9
},
"stopsDistributionMode": {
"type": "string",
"description": "The method of distributing segments when mapping size to data values",
"default": "equal interval",
"enum": [
"quantile",
"equal interval",
"jenks",
"pretty",
"logarithmic"
]
},
"stopsValues": {
"type": "object",
"description": "The mapping of input data values to size values",
"patternProperties": {
"^[0-9]+$": {
"type": "number",
"description": "The size value in pixels at the stop index, where the key is the index of the stop"
}
}
},
"strokeThickness": {
"type": "number",
"description": "The thickness of the stroke in pixels",
"default": 1.25
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "IVectorHeatmapColor",
"description": "The state of the layer's heatmap color symbology options",
"type": "object",
"required": ["selectedAttribute", "colorRamp"],
"additionalProperties": false,
"properties": {
"type": {
"const": "Heatmap"
},
"colorRamp": {
"type": "string",
"default": "cool"
},
"radius": {
"type": "number",
"description": "The radius of influence for each point in the heatmap",
"default": 20
},
"blur": {
"type": "number",
"description": "The blur radius for the heatmap effect",
"default": 15
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"title": "IVectorSimpleColor",
"description": "The state of the layer's simple (single symbol) color symbology options",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"const": "Simple symbol"
},
"fillColor": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "The fill color for the symbol",
"default": "#3388ff"
},
"strokeColor": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "The color of the stroke for the symbol",
"default": "#ffffff"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "IVectorSimpleSize",
"description": "The state of the layer's simple (single symbol) size symbology options",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"const": "Simple symbol"
},
"strokeThickness": {
"type": "number",
"description": "The thickness of the stroke in pixels",
"default": 1.25
},
"symbolRadius": {
"type": "number",
"description": "The radius of the symbols in pixels",
"default": 5
}
}
}
Loading
Loading