forked from MapComplete/MapComplete
Merge pull request #1150 from pietervdvn/feature/station-map
Station map
This commit is contained in:
commit
e8ff43312f
36 changed files with 1854 additions and 2 deletions
|
@ -350,6 +350,10 @@
|
|||
"if": "theme=sports",
|
||||
"then": "./assets/themes/sports/sport.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=stations",
|
||||
"then": "./assets/themes/stations/rail-light.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=street_lighting",
|
||||
"then": "./assets/layers/street_lamps/street_lamp.svg"
|
||||
|
|
3
assets/themes/stations/bench.svg
Normal file
3
assets/themes/stations/bench.svg
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
||||
<path d="m1,5 a.75,.75 0 0 0 0,1.5 h12 a.75,.75 0 0 0 0,-1.5 z m1,2 v3 h1.5 v-3 z m8.5,0 v3 h1.5 v-3 z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 198 B |
3
assets/themes/stations/bicycle_parking.svg
Normal file
3
assets/themes/stations/bicycle_parking.svg
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
||||
<path d="m 0,0 0,10 2.000077,0 0,-3.5 2.500097,0 c 1.976154,3e-7 3.500135,-1 3.500135,-3.25 C 8.000309,1 6.4871,2e-7 4.968942,0 z m 2.000077,2 2.500097,0 c 0.963608,0 1.500058,0.5254308 1.500058,1.25 0,0.7245692 -0.631804,1.25 -1.500058,1.25 l -2.500097,0 z M 9,7 9,7.5938559 9.500367,8 l 0,0.75 -3.000116,0 0,-0.25 0.50002,0 c 0.479412,0 0.455442,-0.5 0,-0.5 L 5.500213,8 c -0.50002,0 -0.50002,0.452061 0,0.5 l 0.500019,0 0,0.25 -0.562522,1.28125 C 5.296384,10.001436 5.147956,10 5.000193,10 c -1.02182,0 -2.000077,0.793929 -2.000077,2 0,1.206071 0.978257,2 2.000077,2 1.02182,0 1.937575,-0.856429 1.937575,-2.0625 0,-0.150759 -0.0039,-0.302075 -0.03125,-0.4375 l 0.843783,0 1.821945,-2 0.365639,0.78125 C 9.383285,10.615837 9.000348,11.229684 9.000348,12 c 0,1.206071 0.978257,2 2.000077,2 C 12.022246,14 12.938,13.143571 12.938,11.9375 12.938,10.731429 12.022246,10 11.000425,10 c -0.15008,0 -0.292278,0.02946 -0.437517,0.0625 L 10.000386,8.75 10,7.8 z m -2.593502,2.5 2.193834,0 -1.193796,1.25 -0.843782,0 C 6.422636,10.56342 6.258266,10.401358 6.062734,10.28125 z M 5.000193,11 c 0.635098,0 1.000039,0.549217 1.000039,1 0,0.450783 -0.364941,1 -1.000039,1 -0.635098,0 -1.000038,-0.549217 -1.000038,-1 0,-0.450783 0.36494,-1 1.000038,-1 z m 6.000232,0 c 0.635099,0 1.000039,0.549217 1.000039,1 0,0.450783 -0.36494,1 -1.000039,1 -0.635098,0 -1.000039,-0.549217 -1.000039,-1 0,-0.450783 0.364941,-1 1.000039,-1 z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
12
assets/themes/stations/departures_board.svg
Normal file
12
assets/themes/stations/departures_board.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.2 KiB |
61
assets/themes/stations/license_info.json
Normal file
61
assets/themes/stations/license_info.json
Normal file
|
@ -0,0 +1,61 @@
|
|||
[
|
||||
{
|
||||
"path": "bench.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Matthijs Melissen"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/bench.svg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "bicycle_parking.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Matthijs Melissen"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/bicycle_parking.svg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "departures_board.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Robin van der Linde"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "public_transport_tickets.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Jérémy Ragusa"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/public_transport_tickets.svg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "rail-light.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Maki"
|
||||
],
|
||||
"sources": [
|
||||
"https://labs.mapbox.com/maki-icons/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "rental_bicycle.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Michael Glanznig",
|
||||
"Andy Allan"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/gravitystorm/openstreetmap-carto/blob/master/symbols/amenity/rental_bicycle.svg"
|
||||
]
|
||||
}
|
||||
]
|
3
assets/themes/stations/public_transport_tickets.svg
Normal file
3
assets/themes/stations/public_transport_tickets.svg
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
||||
<path d="m0,0 v3 h1 v-2 h12 v2 h1 v-3 z m3,2 v12 h3 v-1 a1,1 0 0 1 2,0 v1 h3 v-12 h-1 v6 h-6 v-6 z m1,7 h6 v4 h-1 a2,2 0 0 0 -4,0 h-1 z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 232 B |
47
assets/themes/stations/rail-light.svg
Normal file
47
assets/themes/stations/rail-light.svg
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="svg4619"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
|
||||
sodipodi:docname="rail-light.svg"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="500"
|
||||
height="500"
|
||||
viewBox="0 0 500 500"
|
||||
xml:space="preserve"><metadata
|
||||
id="metadata8"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs6" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="3840"
|
||||
inkscape:window-height="2066"
|
||||
id="namedview4"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.53125"
|
||||
inkscape:cx="-18.032948"
|
||||
inkscape:cy="-17.271704"
|
||||
inkscape:window-x="2149"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4619" />
|
||||
<path
|
||||
id="path14245"
|
||||
d="M 183.33333,0 C 166.66667,0 166.66667,16.666667 166.66667,16.666667 V 50 c 0,9.233332 7.43333,16.666668 16.66666,16.666668 C 192.56667,66.666668 200,59.233332 200,50 V 33.333332 h 33.33333 V 100 H 200 c 0,0 -66.66667,0 -66.66667,66.66667 v 100 c 0,100.00001 100,100.00001 100,100.00001 h 33.33334 c 0,0 100.00001,0 100.00001,-100.00001 v -100 C 366.66668,100 300,100 300,100 H 266.66667 V 33.333332 H 300 V 50 c 0,9.233332 7.43333,16.666668 16.66667,16.666668 9.23333,0 16.66665,-7.433336 16.66665,-16.666668 V 16.666667 C 333.33332,0 316.66667,0 316.66667,0 Z M 250,133.33333 l 68.16333,25.78 15.16999,57.55334 c 4.38669,16.66666 -16.66665,16.66666 -16.66665,16.66666 H 183.33333 c 0,0 -21.05333,0 -16.66666,-16.66666 l 15.16999,-57.55334 z m 0,133.33334 c 9.20333,0 16.66667,7.46333 16.66667,16.66666 C 266.66667,292.53667 259.20333,300 250,300 c -9.20333,0 -16.66667,-7.46333 -16.66667,-16.66667 0,-9.20333 7.46334,-16.66666 16.66667,-16.66666 z M 137.5,400 100,500 h 50 l 12.5,-33.33332 H 337.50002 L 350,500 h 50 L 362.50002,400 H 312.5 L 325,433.33332 H 175 L 187.5,400 Z"
|
||||
style="stroke-width:33.3332" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
3
assets/themes/stations/rental_bicycle.svg
Normal file
3
assets/themes/stations/rental_bicycle.svg
Normal file
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
||||
<path d="M 3.5,0 C 2.119288,0 1,1.1192881 1,2.5 1,3.8807119 2.119288,5 3.5,5 4.425342,5 5.223985,4.4972377 5.65625,3.75 L 7,3.75 l 1,-1 1,1 1,-1 1,1 0.5,0 L 13,2.5 11.5,1.25 5.65625,1.25 C 5.223985,0.5027623 4.425342,0 3.5,0 z m -1,2 C 2.776142,2 3,2.2238576 3,2.5 3,2.7761424 2.776142,3 2.5,3 2.223858,3 2,2.7761424 2,2.5 2,2.2238576 2.223858,2 2.5,2 z m 5.5,3.4375 0.03125,1 L 9,7 9,8 5.25,8 5,8 5,7 5.5,7 c 1,0 1,-1 0,-1 l -2,0 c -1,0 -1,1 0,1 L 4,7 4,8 3.4375,9.375 c -0.04165,-0.0023 -0.08284,0 -0.125,0 C 2.042004,9.375 1,10.417004 1,11.6875 1,12.957996 2.042004,14 3.3125,14 4.582996,14 5.625,12.957996 5.625,11.6875 5.625,11.447485 5.56957,11.218899 5.5,11 L 6,11 7,11 9.156,9 9.15625,9 9.4375,9.71875 C 8.797861,10.135655 8.375,10.877559 8.375,11.6875 8.375,12.957996 9.417004,14 10.6875,14 c 1.270496,0 2.34375,-1.042004 2.34375,-2.3125 0,-1.270496 -1.073254,-2.3125 -2.34375,-2.3125 -0.04216,0 -0.08335,-0.0023 -0.125,0 L 10,8 10,6.625 z M 4.84375,9 7.956,9 6.65,10.25 l -1.55625,0 C 4.939889,10.062277 4.766292,9.851578 4.5625,9.71875 z M 3.3125,10.5 C 3.975001,10.5 4.5,11.024999 4.5,11.6875 4.5,12.350001 3.975001,12.875 3.3125,12.875 2.649999,12.875 2.125,12.350001 2.125,11.6875 2.125,11.024999 2.649999,10.5 3.3125,10.5 z m 7.375,0 c 0.662501,0 1.1875,0.524999 1.1875,1.1875 0,0.662501 -0.524999,1.1875 -1.1875,1.1875 -0.662501,0 -1.15625,-0.524999 -1.15625,-1.1875 0,-0.662501 0.493749,-1.1875 1.15625,-1.1875 z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
307
assets/themes/stations/stations.json
Normal file
307
assets/themes/stations/stations.json
Normal file
|
@ -0,0 +1,307 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"en": "Train Stations"
|
||||
},
|
||||
"description": {
|
||||
"en": "Layer showing train stations"
|
||||
},
|
||||
"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"
|
||||
],
|
||||
"override": {
|
||||
"isShown": {
|
||||
"or": [
|
||||
"indoor=room",
|
||||
"indoor=area"
|
||||
]
|
||||
},
|
||||
"presets": null,
|
||||
"minzoom": 19
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "bike_parking",
|
||||
"override": {
|
||||
"isShown": {
|
||||
"or": [
|
||||
"indoor=room",
|
||||
"indoor=area"
|
||||
]
|
||||
},
|
||||
"presets": null,
|
||||
"minzoom": 19,
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:white;./assets/themes/stations/bicycle_parking.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "bicycle_rental",
|
||||
"override": {
|
||||
"isShown": {
|
||||
"or": [
|
||||
"indoor=room",
|
||||
"indoor=area"
|
||||
]
|
||||
},
|
||||
"presets": null,
|
||||
"minzoom": 19,
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:white;./assets/themes/stations/rental_bicycle.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "car_rental",
|
||||
"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",
|
||||
"ticket_machine",
|
||||
"ticket_validator",
|
||||
{
|
||||
"builtin": [
|
||||
"entrance",
|
||||
"elevator",
|
||||
"waste_basket",
|
||||
"atm"
|
||||
],
|
||||
"override": {
|
||||
"minzoom": 19
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "bench",
|
||||
"override": {
|
||||
"minzoom": 19,
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "./assets/themes/stations/bench.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue