Define source and layer settings in layout.json

This commit is contained in:
Lukas Martinelli
2016-12-22 14:05:29 +01:00
parent 9e5f0c1736
commit e307f58caf
3 changed files with 79 additions and 49 deletions
+46 -6
View File
@@ -1,8 +1,17 @@
{
"line": {
"groups": [
{
"title": "Settings",
"type": "settings"
},
{
"title": "Source",
"type": "source"
},
{
"title": "Paint",
"type": "properties",
"fields": [
"line-opacity",
"line-color",
@@ -14,6 +23,7 @@
},
{
"title": "Secondary",
"type": "properties",
"fields": [
"line-translate",
"line-translate-anchor",
@@ -30,7 +40,16 @@
"background": {
"groups": [
{
"title": "primary",
"title": "Settings",
"type": "settings"
},
{
"title": "Source",
"type": "source"
},
{
"title": "Basic",
"type": "properties",
"fields": [
"background-color",
"background-pattern",
@@ -42,7 +61,16 @@
"fill": {
"groups": [
{
"title": "primary",
"title": "Settings",
"type": "settings"
},
{
"title": "Source",
"type": "source"
},
{
"title": "Basic",
"type": "properties",
"fields": [
"fill-opacity",
"fill-color",
@@ -58,7 +86,16 @@
"symbol": {
"groups": [
{
"title": "primary",
"title": "Settings",
"type": "settings"
},
{
"title": "Source",
"type": "source"
},
{
"title": "Basic",
"type": "properties",
"fields": [
"text-field",
"text-font",
@@ -67,7 +104,8 @@
]
},
{
"title": "placement",
"title": "Placement",
"type": "properties",
"fields": [
"symbol-placement",
"symbol-spacing",
@@ -78,7 +116,8 @@
]
},
{
"title": "layout",
"title": "Layout",
"type": "properties",
"fields": [
"text-pitch-alignment",
"text-rotation-alignment",
@@ -95,7 +134,8 @@
]
},
{
"title": "icon",
"title": "Icon",
"type": "properties",
"fields": [
"icon-allow-overlap",
"icon-ignore-placement",