mapcomplete/assets/themes/sidewalks/sidewalks.json

185 lines
4.4 KiB
JSON
Raw Normal View History

{
"id": "sidewalks",
"title": {
2021-11-25 17:59:12 +01:00
"en": "Sidewalks",
"ru": "Тротуары"
},
"shortDescription": {
"en": "Sidewalk mapping"
},
"description": {
2021-11-25 17:59:12 +01:00
"en": "Experimental theme",
"ru": "Экспериментальная тема"
},
"maintainer": "",
"icon": "./assets/svg/bug.svg",
"version": "0",
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"widenFactor": 0.05,
"socialImage": "",
2021-10-28 01:26:35 +02:00
"hideFromOverview": true,
"layers": [
{
"id": "sidewalks",
"name": {
2021-11-25 17:59:12 +01:00
"en": "Sidewalks",
"ru": "Тротуары"
},
"minzoom": 12,
"source": {
2021-10-28 00:53:29 +02:00
"osmTags": {
"or": [
"highway=residential",
"highway=unclassified",
2021-10-28 00:53:29 +02:00
"highway=tertiary",
"highway=secondary"
]
}
},
"title": {
"render": {
2021-11-25 17:59:12 +01:00
"en": "{name}",
"ru": "{name}"
2021-10-22 18:53:07 +02:00
},
"mappings": [
{
"if": "name=",
"then": "Nameless street"
}
]
},
"description": {
"en": "Layer showing sidewalks of highways"
},
2021-10-22 18:53:07 +02:00
"tagRenderings": [
{
"id": "streetname",
"render": {
"en": "This street is named {name}"
}
},
{
2021-10-26 01:39:29 +02:00
"rewrite": {
"sourceString": "left|right",
"into": [
"left",
"right"
]
2021-10-22 18:53:07 +02:00
},
2021-10-26 01:39:29 +02:00
"renderings": [
{
2021-12-21 18:35:31 +01:00
"id": "sidewalk_minimap_left|right",
2021-10-28 01:26:35 +02:00
"render": "{sided_minimap(left|right):height:8rem;border-radius:0.5rem;overflow:hidden}"
2021-10-22 18:53:07 +02:00
},
2021-10-26 01:39:29 +02:00
{
2021-12-21 18:35:31 +01:00
"id": "has_sidewalk_left|right",
2021-10-28 01:26:35 +02:00
"question": "Is there a sidewalk on this side of the road?",
2021-10-26 01:39:29 +02:00
"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"
}
]
},
{
2021-12-21 18:35:31 +01:00
"id": "sidewalk_width_left|right",
2021-10-26 01:39:29 +02:00
"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"
]
}
2021-10-22 18:53:07 +02:00
}
2021-10-26 01:39:29 +02:00
]
}
],
"mapRendering": [
{
2021-10-26 01:39:29 +02:00
"location": [
"start",
"end"
],
2021-10-22 18:53:07 +02:00
"icon": "circle:#ccc",
2021-11-08 19:46:43 +01:00
"iconSize": "3,3,center"
},
2021-10-22 18:53:07 +02:00
{
2021-10-28 01:26:35 +02:00
"#": "The center line",
2021-10-22 18:53:07 +02:00
"color": "#ffffff55",
2021-11-08 19:46:43 +01:00
"width": 8,
"lineCap": "butt"
2021-10-22 18:53:07 +02:00
},
{
2021-10-28 01:26:35 +02:00
"#": "left",
2021-10-22 18:53:07 +02:00
"color": {
"render": "#888"
},
2021-10-28 01:26:35 +02:00
"dashArray": {
2021-10-28 00:53:29 +02:00
"render": "",
"mappings": [
{
2021-10-28 01:26:35 +02:00
"if": "sidewalk:left=",
"then": "1,12"
2021-10-28 00:53:29 +02:00
}
]
},
2021-10-22 18:53:07 +02:00
"width": {
"render": 6,
"mappings": [
{
"if": {
"or": [
"sidewalk:left=no",
"sidewalk:left=separate"
]
},
"then": 0
}
]
},
2021-11-08 19:46:43 +01:00
"offset": -6,
"lineCap": "butt"
2021-10-22 18:53:07 +02:00
},
{
"color": "#888",
2021-10-28 01:26:35 +02:00
"dashArray": {
2021-10-28 00:53:29 +02:00
"render": "",
"mappings": [
{
"if": "sidewalk:right=",
2021-10-28 01:26:35 +02:00
"then": "1,12"
2021-10-28 00:53:29 +02:00
}
]
},
2021-10-22 18:53:07 +02:00
"width": {
"render": 6,
"mappings": [
{
"if": {
"or": [
"sidewalk:right=no",
"sidewalk:right=separate"
]
},
"then": 0
}
]
},
2021-11-08 19:46:43 +01:00
"lineCap": "butt",
2021-10-22 18:53:07 +02:00
"offset": 6
}
],
"allowSplit": true
}
]
2021-11-07 15:44:22 +01:00
}