mapcomplete/assets/themes/sidewalks/sidewalks.json

144 lines
No EOL
3.3 KiB
JSON

{
"id": "sidewalks",
"title": {
"en": "Sidewalks"
},
"shortDescription": {
"en": "Sidewalk mapping"
},
"description": {
"en": "Experimental theme"
},
"language": [
"en"
],
"maintainer": "",
"icon": "./assets/svg/bug.svg",
"version": "0",
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"widenFactor": 0.05,
"socialImage": "",
"layers": [
{
"id": "sidewalks",
"name": {
"en": "Sidewalks"
},
"minzoom": 12,
"source": {
"osmTags": "highway=residential"
},
"title": {
"render": {
"en": "{name}"
},
"mappings": [
{
"if": "name=",
"then": "Nameless street"
}
]
},
"description": {
"en": "Layer showing sidewalks of highways"
},
"tagRenderings": [
{
"id": "streetname",
"render": {
"en": "This street is named {name}"
}
},
{
"leftRightKeys": "sidewalk:left|right",
"renderings": [
{
"id": "sidewalk_minimap",
"render": "{sided_minimap(left|right):height:3rem;border-radius:0.5rem;overflow:hidden}"
},
{
"id": "has_sidewalk",
"question": "Is there a sidewalk on the left|right side of the road?",
"mappings": [{
"if": "sidewalk:left|right=yes",
"then": "Yes, there is a sidewalk on this side of the road"
},
{
"if": "sidewalk:left|right=no",
"then": "No, there is no seperated sidewalk to walk on"
}]
},
{
"id": "sidewalk_width",
"question": "What is the width of the sidewalk on this side of the road?",
"render": "This sidewalk is {sidewalk:left|right:width}m wide",
"condition": "sidewalk:left|right=yes",
"freeform": {
"key": "sidewalk:left|right:width",
"type": "length",
"helperArgs": ["21", "map"]
}
}
]
}],
"mapRendering": [
{
"location": ["start","end"],
"icon": "circle:#ccc",
"iconSize": "20,20,center"
},
{
"color": "#ffffff55",
"width": 8
},
{
"color": {
"render": "#888"
},
"width": {
"render": 6,
"mappings": [
{
"if": {
"or": [
"sidewalk:left=",
"sidewalk:left=no",
"sidewalk:left=separate"
]
},
"then": 0
}
]
},
"offset": -6
},
{
"color": "#888",
"width": {
"render": 6,
"mappings": [
{
"if": {
"or": [
"sidewalk:right=",
"sidewalk:right=no",
"sidewalk:right=separate"
]
},
"then": 0
}
]
},
"offset": 6
}
],
"allowSplit": true
}
]
}