Linting of maxspees theme

This commit is contained in:
pietervdvn 2022-04-12 13:16:45 +02:00
parent 8c50758ceb
commit 60debcf6ed

View file

@ -1,5 +1,5 @@
{ {
"id": "velocidad", "id": "maxspeeds",
"title": { "title": {
"es": "Velocidad", "es": "Velocidad",
"ca": "Velocitat", "ca": "Velocitat",
@ -15,11 +15,6 @@
"ca": "Completarem les propietats de la velocitat de la via que faltin.", "ca": "Completarem les propietats de la velocitat de la via que faltin.",
"en": "Complete the maxspeed properties of a way." "en": "Complete the maxspeed properties of a way."
}, },
"language": [
"es",
"ca",
"en"
],
"maintainer": "", "maintainer": "",
"icon": "ES_R301.png", "icon": "ES_R301.png",
"version": "0", "version": "0",
@ -27,35 +22,15 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 0.01, "widenFactor": 0.01,
"socialImage": "",
"layers": [ "layers": [
{ {
"id": "velocidad", "id": "maxspeed",
"name": { "name": {
"es": "Velocidad", "es": "Velocidad",
"ca": "Velocitat", "ca": "Velocitat",
"en": "Maxspeed" "en": "Maxspeed"
}, },
"minzoom": 16, "minzoom": 16,
"overpassTags": {
"or": [
"highway=residential",
"highway=living_street",
"highway=motorway",
"highway=tertiary",
"highway=service",
"highway=unclassified",
"highway=secondary",
"highway=primary",
"highway=trunk",
"highway=motorway",
"highway=tertiary_link",
"highway=secondary_link",
"highway=primary_link",
"highway=trunk_link",
"highway=motorway_link"
]
},
"title": { "title": {
"render": { "render": {
"es": "Nombre: {name}", "es": "Nombre: {name}",
@ -96,7 +71,8 @@
}, },
"freeform": { "freeform": {
"key": "maxspeed" "key": "maxspeed"
} },
"id": "maxspeed-maxspeed"
}, },
{ {
"render": { "render": {
@ -137,184 +113,213 @@
"en": "No one way" "en": "No one way"
} }
} }
] ],
"id": "maxspeed-oneway"
} }
], ],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"mappings": [
{
"if": {
"and": [
"maxspeed=10"
]
},
"then": {
"es": "ES_R301_10.png",
"ca": "ES_R301_10.png",
"en": "ES_R301_10.png"
}
},
{
"if": {
"and": [
"maxspeed=20"
]
},
"then": {
"es": "ES_R301_20.png",
"ca": "ES_R301_20.png",
"en": "ES_R301_20.png"
}
},
{
"if": {
"and": [
"maxspeed=30"
]
},
"then": {
"es": "ES_R301_30.png",
"ca": "ES_R301_30.png",
"en": "ES_R301_30.png"
}
},
{
"if": {
"and": [
"maxspeed=40"
]
},
"then": {
"es": "ES_R301_40.png",
"ca": "ES_R301_40.png",
"en": "ES_R301_40.png"
}
},
{
"if": {
"and": [
"maxspeed=50"
]
},
"then": {
"es": "ES_R301_50.png",
"ca": "ES_R301_50.png",
"en": "ES_R301_50.png"
}
},
{
"if": {
"and": [
"maxspeed=60"
]
},
"then": {
"es": "ES_R301_60.png",
"ca": "ES_R301_60.png",
"en": "ES_R301_60.png"
}
},
{
"if": {
"and": [
"maxspeed=70"
]
},
"then": {
"es": "ES_R301_70.png",
"ca": "ES_R301_70.png",
"en": "ES_R301_70.png"
}
},
{
"if": {
"and": [
"maxspeed=80"
]
},
"then": {
"es": "ES_R301_80.png",
"ca": "ES_R301_80.png",
"en": "ES_R301_80.png"
}
},
{
"if": {
"and": [
"maxspeed=90"
]
},
"then": {
"es": "ES_R301_90.png",
"ca": "ES_R301_90.png",
"en": "ES_R301_90.png"
}
},
{
"if": {
"and": [
"maxspeed=100"
]
},
"then": {
"es": "ES_R301_100.png",
"ca": "ES_R301_100.png",
"en": "ES_R301_100.png"
}
},
{
"if": {
"and": [
"maxspeed=110"
]
},
"then": {
"es": "ES_R301_110.png",
"ca": "ES_R301_110.png",
"en": "ES_R301_110.png"
}
},
{
"if": {
"and": [
"maxspeed=120"
]
},
"then": {
"es": "ES_R301_120.png",
"ca": "ES_R301_120.png",
"en": "ES_R301_120.png"
}
}
]
},
"width": {
"render": "3"
},
"iconSize": {
"render": "20,20,center"
},
"color": {
"render": "#000000",
"mappings": [
{
"if": {
"and": [
"maxspeed="
]
},
"then": {
"es": "#ff0000",
"ca": "#ff0000",
"en": "#ff0000"
}
}
]
},
"presets": [], "presets": [],
"wayHandling": 2 "source": {
"osmTags": {
"or": [
"highway=residential",
"highway=living_street",
"highway=motorway",
"highway=tertiary",
"highway=service",
"highway=unclassified",
"highway=secondary",
"highway=primary",
"highway=trunk",
"highway=motorway",
"highway=tertiary_link",
"highway=secondary_link",
"highway=primary_link",
"highway=trunk_link",
"highway=motorway_link"
]
}
},
"mapRendering": [
{
"icon": {
"mappings": [
{
"if": {
"and": [
"maxspeed=10"
]
},
"then": {
"es": "ES_R301_10.png",
"ca": "ES_R301_10.png",
"en": "ES_R301_10.png"
}
},
{
"if": {
"and": [
"maxspeed=20"
]
},
"then": {
"es": "ES_R301_20.png",
"ca": "ES_R301_20.png",
"en": "ES_R301_20.png"
}
},
{
"if": {
"and": [
"maxspeed=30"
]
},
"then": {
"es": "ES_R301_30.png",
"ca": "ES_R301_30.png",
"en": "ES_R301_30.png"
}
},
{
"if": {
"and": [
"maxspeed=40"
]
},
"then": {
"es": "ES_R301_40.png",
"ca": "ES_R301_40.png",
"en": "ES_R301_40.png"
}
},
{
"if": {
"and": [
"maxspeed=50"
]
},
"then": {
"es": "ES_R301_50.png",
"ca": "ES_R301_50.png",
"en": "ES_R301_50.png"
}
},
{
"if": {
"and": [
"maxspeed=60"
]
},
"then": {
"es": "ES_R301_60.png",
"ca": "ES_R301_60.png",
"en": "ES_R301_60.png"
}
},
{
"if": {
"and": [
"maxspeed=70"
]
},
"then": {
"es": "ES_R301_70.png",
"ca": "ES_R301_70.png",
"en": "ES_R301_70.png"
}
},
{
"if": {
"and": [
"maxspeed=80"
]
},
"then": {
"es": "ES_R301_80.png",
"ca": "ES_R301_80.png",
"en": "ES_R301_80.png"
}
},
{
"if": {
"and": [
"maxspeed=90"
]
},
"then": {
"es": "ES_R301_90.png",
"ca": "ES_R301_90.png",
"en": "ES_R301_90.png"
}
},
{
"if": {
"and": [
"maxspeed=100"
]
},
"then": {
"es": "ES_R301_100.png",
"ca": "ES_R301_100.png",
"en": "ES_R301_100.png"
}
},
{
"if": {
"and": [
"maxspeed=110"
]
},
"then": {
"es": "ES_R301_110.png",
"ca": "ES_R301_110.png",
"en": "ES_R301_110.png"
}
},
{
"if": {
"and": [
"maxspeed=120"
]
},
"then": {
"es": "ES_R301_120.png",
"ca": "ES_R301_120.png",
"en": "ES_R301_120.png"
}
}
]
},
"iconSize": {
"render": "20,20,center"
},
"location": [
"point",
"centroid"
]
},
{
"color": {
"render": "#000000",
"mappings": [
{
"if": {
"and": [
"maxspeed="
]
},
"then": {
"es": "#ff0000",
"ca": "#ff0000",
"en": "#ff0000"
}
}
]
},
"width": {
"render": "3"
}
}
]
} }
], ]
"roamingRenderings": []
} }