mapcomplete/assets/themes/stations/stations.json
2022-10-30 19:30:54 +01:00

304 lines
6.3 KiB
JSON

{
"id": "stations",
"title": {
"en": "Train Stations"
},
"description": {
"en": "View, edit and add details to a train station"
},
"icon": "./assets/themes/stations/rail-light.svg",
"startLat": 0,
"startLon": 0,
"startZoom": 0,
"hideFromOverview": true,
"defaultBackgroundId": "CartoDB.Positron",
"layers": [
{
"builtin": "indoors",
"override": {
"minzoom": 19,
"passAllFeatures": true,
"mapRendering": [
{},
{},
{
"label": {
"render": null,
"mappings": null
},
"iconSize": "0,0,bottom"
}
]
}
},
{
"builtin": "stairs",
"override": {
"minzoom": 19
}
},
{
"builtin": "pedestrian_path",
"override": {
"title": null,
"name": null,
"mapRendering": null
}
},
{
"id": "train_station",
"minzoom": 12,
"minzoomVisible": 17,
"source": {
"osmTags": {
"or": [
"railway=station",
"railway=halt"
]
}
},
"mapRendering": [
{
"icon": "./assets/themes/stations/rail-light.svg",
"location": [
"point",
"centroid"
],
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div style='background: white; padding: 0.25em; border-radius:0.5em'>{name}</div>"
}
]
}
},
{
"color": "green"
}
]
},
{
"builtin": [
"shops",
"bike_parking"
],
"override": {
"isShown": {
"or": [
"indoor=room",
"indoor=area"
]
},
"presets": null,
"minzoom": 19
}
},
{
"builtin": [
"food",
"cafe_pub"
],
"override": {
"isShown": {
"or": [
"indoor=room",
"indoor=area"
]
},
"presets": null,
"minzoom": 19,
"mapRendering+": [
{
"color": {
"render": "#00f"
},
"width": {
"render": "8"
}
}
]
}
},
{
"builtin": "toilet",
"override": {
"isShown": {
"or": [
"indoor=room",
"indoor=area"
]
},
"presets": null,
"minzoom": 19,
"mapRendering+": [
{
"color": {
"render": "yellow"
},
"width": {
"render": "8"
}
}
]
}
},
"railway_platforms",
{
"id": "ticket_machine",
"name": {
"en": "Ticket Machines"
},
"description": {
"en": "Find ticket machines for public transport tickets"
},
"source": {
"osmTags": {
"and": [
"amenity=vending_machine",
"vending=public_transport_tickets"
]
}
},
"minzoom": 19,
"title": {
"render": {
"en": "Ticket Machine"
}
},
"tagRenderings": [
"images",
"level",
{
"id": "operator",
"question": {
"en": "Who is the operator of this ticket machine?"
},
"render": {
"en": "This ticket machine is operated by {operator}"
},
"freeform": {
"key": "operator",
"type": "string",
"placeholder": {
"en": "Name of the operator"
}
}
}
],
"presets": [
{
"tags": [
"amenity=vending_machine",
"vending=public_transport_tickets"
],
"title": {
"en": "a ticket machine"
}
}
],
"mapRendering": [
{
"icon": "circle:white;./assets/themes/stations/public_transport_tickets.svg",
"iconSize": "20,20,center",
"location": [
"point",
"centroid"
]
}
]
},
{
"builtin": [
"entrance",
"elevator",
"bench",
"waste_basket"
],
"override": {
"minzoom": 19
}
},
{
"id": "departures_board",
"name": {
"en": "Departures boards"
},
"description": {
"en": "Displays showing the trains that will leave from this station"
},
"title": {
"render": {
"en": "Departures board"
}
},
"minzoom": 19,
"source": {
"osmTags": {
"and": [
"departures_board~*",
"departures_board!=no",
"public_transport="
]
}
},
"tagRenderings": [
{
"id": "type",
"question": {
"en": "What kind of departures board is this?"
},
"mappings": [
{
"if": "departures_board=yes",
"then": {
"en": "This is a departures board of an unknown type"
}
},
{
"if": "departures_board=realtime",
"then": {
"en": "This is an electronic board, showing the next departures in realtime"
}
},
{
"if": "departures_board=timetable",
"then": {
"en": "This is a paper timetable"
}
},
{
"if": "departures_board=delay",
"then": {
"en": "There is a sign showing the frequency of the trains"
}
}
]
},
"level"
],
"presets": [
{
"tags": [
"departures_board=yes"
],
"title": {
"en": "a departures board"
},
"description": {
"en": "Add a board showing departures, either electronic or paper"
}
}
],
"mapRendering": [
{
"icon": "./assets/themes/stations/departures_board.svg",
"location": [
"point",
"centroid"
]
}
]
}
]
}