Basic station map

This commit is contained in:
Robin van der Linde 2022-09-12 10:33:52 +02:00
parent c8475068d0
commit cf91e4fe54
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
5 changed files with 370 additions and 0 deletions

View file

@ -0,0 +1,69 @@
{
"id": "railway_platforms",
"name": {
"en": "Railway Platforms"
},
"description": {
"en": "Find every platform in the station, and the train routes that use them."
},
"title": {
"render": {
"en": "Platform"
},
"mappings": [
{
"if": "ref~*",
"then": {
"en": "Platform {ref}"
}
}
]
},
"source": {
"osmTags": {
"or": [
"railway=platform"
]
}
},
"minzoom": 18,
"tagRenderings": [
{
"id": "ref",
"question": {
"en": "What is the number for this platform?"
},
"freeform": {
"key": "ref",
"type": "string",
"placeholder": {
"en": "Platform number"
}
},
"render": {
"en": "Platform {ref}"
}
},
"level"
],
"mapRendering": [
{
"color": "gray"
},
{
"icon": "./assets/svg/bug.svg",
"location": [
"point",
"centroid"
],
"label": {
"mappings": [
{
"if": "ref~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{ref}</div>"
}
]
}
}
]
}