242 lines
No EOL
6.1 KiB
JSON
242 lines
No EOL
6.1 KiB
JSON
{
|
||
"id": "sidewalks",
|
||
"title": {
|
||
"en": "Sidewalks",
|
||
"ru": "Тротуары",
|
||
"nl": "Voetpaden",
|
||
"de": "Gehwege",
|
||
"ca": "Voreres",
|
||
"es": "Aceras",
|
||
"fr": "Trottoirs",
|
||
"nb_NO": "Fortau"
|
||
},
|
||
"shortDescription": {
|
||
"en": "Sidewalk mapping",
|
||
"ca": "Mapejat de voreres",
|
||
"de": "Kartierung von Bürgersteigen",
|
||
"es": "Mapeo de aceras",
|
||
"nl": "Voetpaden in kaart brengen",
|
||
"fr": "Cartographier des trottoirs"
|
||
},
|
||
"description": {
|
||
"en": "Experimental theme",
|
||
"ru": "Экспериментальная тема",
|
||
"ca": "Petició experimental",
|
||
"de": "Experimentelles Thema",
|
||
"es": "Tema experimental",
|
||
"nl": "Experimenteel thema",
|
||
"fr": "Thème expérimental",
|
||
"nb_NO": "Eksperimentelt tema"
|
||
},
|
||
"icon": "./assets/svg/bug.svg",
|
||
"startLat": 0,
|
||
"startLon": 0,
|
||
"startZoom": 1,
|
||
"widenFactor": 0.05,
|
||
"hideFromOverview": true,
|
||
"layers": [
|
||
{
|
||
"id": "sidewalks",
|
||
"name": {
|
||
"en": "Sidewalks",
|
||
"ru": "Тротуары",
|
||
"de": "Gehwege",
|
||
"ca": "Voreres",
|
||
"es": "Aceras",
|
||
"nb_NO": "Fortau",
|
||
"nl": "Voetpaden",
|
||
"fr": "Trottoirs"
|
||
},
|
||
"minzoom": 12,
|
||
"source": {
|
||
"osmTags": {
|
||
"or": [
|
||
"highway=residential",
|
||
"highway=unclassified",
|
||
"highway=tertiary",
|
||
"highway=secondary"
|
||
]
|
||
}
|
||
},
|
||
"title": {
|
||
"render": {
|
||
"en": "{name}",
|
||
"ru": "{name}",
|
||
"de": "{name}",
|
||
"ca": "{name}",
|
||
"es": "{name}",
|
||
"nl": "{name}",
|
||
"fr": "{name}"
|
||
},
|
||
"mappings": [
|
||
{
|
||
"if": "name=",
|
||
"then": "Nameless street"
|
||
}
|
||
]
|
||
},
|
||
"description": {
|
||
"en": "Layer showing sidewalks of highways",
|
||
"de": "Ebene mit Bürgersteigen",
|
||
"es": "Una capa que muestra aceras de autovías",
|
||
"nl": "Laag die voetpaden naast wegen toont",
|
||
"fr": "Calque montrant les trottoirs"
|
||
},
|
||
"tagRenderings": [
|
||
{
|
||
"id": "streetname",
|
||
"render": {
|
||
"en": "This street is named {name}",
|
||
"de": "Diese Straße heißt {name}",
|
||
"es": "Esta calle se llama {name}",
|
||
"nl": "Deze straat heet {name}",
|
||
"fr": "Cette rue s’appelle {name}",
|
||
"nb_NO": "Denne gaten heter {name}"
|
||
}
|
||
},
|
||
{
|
||
"id": "left-right-questions",
|
||
"rewrite": {
|
||
"sourceString": [
|
||
"left|right"
|
||
],
|
||
"into": [
|
||
[
|
||
"left"
|
||
],
|
||
[
|
||
"right"
|
||
]
|
||
]
|
||
},
|
||
"renderings": [
|
||
{
|
||
"id": "sidewalk_minimap_left|right",
|
||
"render": "{sided_minimap(left|right):height:8rem;border-radius:0.5rem;overflow:hidden}"
|
||
},
|
||
{
|
||
"id": "has_sidewalk_left|right",
|
||
"question": {
|
||
"en": "Is there a sidewalk on this side of the road?"
|
||
},
|
||
"mappings": [
|
||
{
|
||
"if": "sidewalk:left|right=yes",
|
||
"then": {
|
||
"en": "Yes, there is a sidewalk on this side of the road"
|
||
}
|
||
},
|
||
{
|
||
"if": "sidewalk:left|right=no",
|
||
"then": {
|
||
"en": "No, there is no sidewalk to walk on"
|
||
}
|
||
},
|
||
{
|
||
"if": "sidewalk:left|right=separate",
|
||
"then": {
|
||
"en": "There is a separately mapped sidewalk to walk on"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "sidewalk_width_left|right",
|
||
"question": {
|
||
"en": "What is the width of the sidewalk on this side of the road?"
|
||
},
|
||
"render": {
|
||
"en": "This sidewalk is {sidewalk:left|right:width}m wide"
|
||
},
|
||
"condition": "sidewalk:left|right=yes",
|
||
"freeform": {
|
||
"key": "sidewalk:left|right:width",
|
||
"type": "distance",
|
||
"helperArgs": [
|
||
"21",
|
||
"map"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"mapRendering": [
|
||
{
|
||
"location": [
|
||
"start",
|
||
"end"
|
||
],
|
||
"icon": "circle:#ccc",
|
||
"iconSize": "3,3,center"
|
||
},
|
||
{
|
||
"#": "The center line",
|
||
"color": "#ffffff55",
|
||
"width": 8,
|
||
"lineCap": "butt"
|
||
},
|
||
{
|
||
"#": "left",
|
||
"color": {
|
||
"render": "#888"
|
||
},
|
||
"dashArray": {
|
||
"render": "",
|
||
"mappings": [
|
||
{
|
||
"if": "sidewalk:left=",
|
||
"then": "1,12"
|
||
}
|
||
]
|
||
},
|
||
"width": {
|
||
"render": 6,
|
||
"mappings": [
|
||
{
|
||
"if": {
|
||
"or": [
|
||
"sidewalk:left=no",
|
||
"sidewalk:left=separate"
|
||
]
|
||
},
|
||
"then": 0
|
||
}
|
||
]
|
||
},
|
||
"offset": -6,
|
||
"lineCap": "butt"
|
||
},
|
||
{
|
||
"color": "#888",
|
||
"dashArray": {
|
||
"render": "",
|
||
"mappings": [
|
||
{
|
||
"if": "sidewalk:right=",
|
||
"then": "1,12"
|
||
}
|
||
]
|
||
},
|
||
"width": {
|
||
"render": 6,
|
||
"mappings": [
|
||
{
|
||
"if": {
|
||
"or": [
|
||
"sidewalk:right=no",
|
||
"sidewalk:right=separate"
|
||
]
|
||
},
|
||
"then": 0
|
||
}
|
||
]
|
||
},
|
||
"lineCap": "butt",
|
||
"offset": 6
|
||
}
|
||
],
|
||
"allowSplit": true
|
||
}
|
||
]
|
||
} |