diff --git a/assets/layers/historic_rolling_stock/historic_rolling_stock.json b/assets/layers/historic_rolling_stock/historic_rolling_stock.json new file mode 100644 index 0000000000..fdbf4f60b9 --- /dev/null +++ b/assets/layers/historic_rolling_stock/historic_rolling_stock.json @@ -0,0 +1,192 @@ +{ + "id": "historic_rolling_stock", + "name": { + "en": "Historic rolling stock" + }, + "description": { + "en": "Historic rolling stock (such as locomotives, railway cars and wagons) which are permanently placed at a location" + }, + "source": { + "osmTags": { + "or": [ + "historic=locomotive", + "memorial=locomotive", + "historic=railway_car", + "memorial=railway_car", + "historic=minecart", + "memorial=mincart" + ] + } + }, + "minzoom": 5, + "title": { + "render": { + "en": "Historic rolling stock" + }, + "mappings": [ + { + "if": { + "or": [ + "historic=locomotive", + "memorial=locomotive" + ] + }, + "then": { + "en": "Historic locomotive" + } + }, + { + "if": { + "or": [ + "historic=railway_car", + "memorial=railway_car" + ] + }, + "then": { + "en": "Historic railway car" + } + }, + { + "if": { + "or": [ + "historic=minecart", + "memorial=minecart" + ] + }, + "then": { + "en": "Historic minecart" + } + } + ] + }, + "pointRendering": [ + { + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": "circle", + "color": "white" + }, + { + "icon": { + "mappings": [ + { + "if": { + "or": [ + "historic=locomotive", + "memorial=locomotive" + ] + }, + "then": "./assets/layers/historic_rolling_stock/steam_locomotive.svg" + }, + { + "if": { + "or": [ + "historic=minecart", + "memorial=minecart" + ] + }, + "then": "./assets/layers/historic_rolling_stock/minecart.svg" + }, + { + "if": { + "or": [ + "historic=railway_car", + "memorial=railway_car" + ] + }, + "then": "./assets/layers/historic_rolling_stock/railway_car.svg" + } + ] + } + } + ] + } + ], + "lineRendering": [ + { + "width": 1, + "color": "blue" + } + ], + "presets": [ + { + "title": { + "en": "a locomotive on a permanent location" + }, + "description": { + "en": "A (historic) locomotive permanently installed on a location, e.g. in a museum, as artwork or as memorial." + }, + "tags": [ + "historic=locomotive" + ] + }, + { + "title": { + "en": "a railway car on a permanent location" + }, + "description": { + "en": "A decommissioned railway car permanently installed on a location, e.g. in a museum, as artwork or as memorial." + }, + "tags": [ + "historic=railway_car" + ] + }, + { + "title": { + "en": "a minecart on a permanent location" + }, + "description": { + "en": "A (historic) minecart permanently installed on a location, e.g. in a museum, as artwork or as memorial." + }, + "tags": [ + "historic=minecart" + ] + } + ], + "tagRenderings": [ + "images", + { + "id": "is_memorial", + "question": { + "en": "Does this also serve as a memorial?" + }, + "mappings": [ + { + "if": "memorial:={historic}", + "alsoShowIf": "memorial~*", + "then": { + "en": "Serves as a memorial" + } + }, + { + "if": "not:memorial=yes", + "alsoShowIf": "memorial=", + "then": { + "en": "Does not serve as a memorial" + } + } + ] + }, + { + "builtin": "memorial.memorial-questions", + "override": { + "condition": { + "and+": [ + "memorial~*" + ] + } + } + } + ], + "deletion": true, + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": false + }, + "credits": "Pieter Vander Vennet", + "credits:uid": 3818858 +} diff --git a/assets/layers/historic_rolling_stock/license_info.json b/assets/layers/historic_rolling_stock/license_info.json new file mode 100644 index 0000000000..0520aeab34 --- /dev/null +++ b/assets/layers/historic_rolling_stock/license_info.json @@ -0,0 +1,32 @@ +[ + { + "path": "minecart.svg", + "license": "MIT License", + "authors": [ + "Bootstrap UI Icons" + ], + "sources": [ + "https://www.svgrepo.com/svg/345008/minecart-loaded" + ] + }, + { + "path": "railway_car.svg", + "license": "Public Domain", + "authors": [ + "Pixabay" + ], + "sources": [ + "https://svgsilh.com/image/159763.html" + ] + }, + { + "path": "steam_locomotive.svg", + "license": "Public Domain", + "authors": [ + " Icooon Mono" + ], + "sources": [ + "https://www.svgrepo.com/svg/480876/steam-locomotive" + ] + } +] \ No newline at end of file diff --git a/assets/layers/historic_rolling_stock/minecart.svg b/assets/layers/historic_rolling_stock/minecart.svg new file mode 100644 index 0000000000..c6ffd17f23 --- /dev/null +++ b/assets/layers/historic_rolling_stock/minecart.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/assets/layers/historic_rolling_stock/minecart.svg.license b/assets/layers/historic_rolling_stock/minecart.svg.license new file mode 100644 index 0000000000..aaf826a152 --- /dev/null +++ b/assets/layers/historic_rolling_stock/minecart.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Bootstrap UI Icons +SPDX-License-Identifier: MIT License \ No newline at end of file diff --git a/assets/layers/historic_rolling_stock/railway_car.svg b/assets/layers/historic_rolling_stock/railway_car.svg new file mode 100644 index 0000000000..9df4c8e7a6 --- /dev/null +++ b/assets/layers/historic_rolling_stock/railway_car.svg @@ -0,0 +1,120 @@ + + + + + + + +Created by potrace 1.15, written by Peter Selinger 2001-2017 + + + + + + + + + + + + + diff --git a/assets/layers/historic_rolling_stock/railway_car.svg.license b/assets/layers/historic_rolling_stock/railway_car.svg.license new file mode 100644 index 0000000000..191415e0d5 --- /dev/null +++ b/assets/layers/historic_rolling_stock/railway_car.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Pixabay +SPDX-License-Identifier: Public Domain \ No newline at end of file diff --git a/assets/layers/historic_rolling_stock/steam_locomotive.svg b/assets/layers/historic_rolling_stock/steam_locomotive.svg new file mode 100644 index 0000000000..3e4896aebb --- /dev/null +++ b/assets/layers/historic_rolling_stock/steam_locomotive.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/layers/historic_rolling_stock/steam_locomotive.svg.license b/assets/layers/historic_rolling_stock/steam_locomotive.svg.license new file mode 100644 index 0000000000..83a777a435 --- /dev/null +++ b/assets/layers/historic_rolling_stock/steam_locomotive.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Icooon Mono +SPDX-License-Identifier: Public Domain \ No newline at end of file diff --git a/assets/themes/historic_rolling_stock/historic_rolling_stock.json b/assets/themes/historic_rolling_stock/historic_rolling_stock.json new file mode 100644 index 0000000000..8af8708a32 --- /dev/null +++ b/assets/themes/historic_rolling_stock/historic_rolling_stock.json @@ -0,0 +1,13 @@ +{ + "id": "historic_rolling_stock", + "title": { + "en": "Historic rolling stock" + }, + "description": { + "en": "A map showing all historic, permanently installed rolling stock, such as locomitives and railway carriages, e.g. in a museum, an artwork or a memorial." + }, + "icon": "./assets/layers/historic_rolling_stock/historic_rolling_stock.svg", + "layers": [ + "historic_rolling_stock" + ] +}