From 80953d35ac4fa018f9a597270a16c3c950bc6372 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Fri, 25 Jul 2025 01:01:16 +0200 Subject: [PATCH] Themes(infrastructure): Add telecom exchange --- .../layers/telecom_exchange/license_info.json | 15 ++++ .../telecom_exchange/telecom_exchange.json | 84 +++++++++++++++++++ .../telecom_exchange/telecom_exchange.svg | 1 + .../telecom_exchange.svg.license | 2 + .../themes/infrastructure/infrastructure.json | 3 +- .../mapcomplete-changes.json | 4 + 6 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 assets/layers/telecom_exchange/license_info.json create mode 100644 assets/layers/telecom_exchange/telecom_exchange.json create mode 100644 assets/layers/telecom_exchange/telecom_exchange.svg create mode 100644 assets/layers/telecom_exchange/telecom_exchange.svg.license diff --git a/assets/layers/telecom_exchange/license_info.json b/assets/layers/telecom_exchange/license_info.json new file mode 100644 index 0000000000..11b85d6447 --- /dev/null +++ b/assets/layers/telecom_exchange/license_info.json @@ -0,0 +1,15 @@ +[ + { + "path": "telecom_exchange.svg", + "license": "CC0-1.0", + "authors": [ + "Abu Badali", + "Sarang", + "Robin van der Linde" + ], + "sources": [ + "https://commons.wikimedia.org/wiki/File:Phoneicon.svg", + "https://commons.wikimedia.org/wiki/File:Globe_icon.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/telecom_exchange/telecom_exchange.json b/assets/layers/telecom_exchange/telecom_exchange.json new file mode 100644 index 0000000000..d822e11831 --- /dev/null +++ b/assets/layers/telecom_exchange/telecom_exchange.json @@ -0,0 +1,84 @@ +{ + "id": "telecom_exchange", + "name": { + "en": "Telecom Exchanges" + }, + "description": { + "en": "Layer showing telecom exchanges, which are facilities that connect telephone lines and manage telecommunications traffic." + }, + "source": { + "osmTags": "telecom=exchange" + }, + "minzoom": 9, + "title": { + "render": { + "en": "Telecom Exchange" + } + }, + "pointRendering": [ + { + "marker": [ + { + "icon": "./assets/layers/telecom_exchange/telecom_exchange.svg" + } + ], + "location": [ + "point", + "centroid" + ] + } + ], + "presets": [ + { + "title": { + "en": "a telecom exchange" + }, + "tags": [ + "telecom=exchange" + ] + } + ], + "tagRenderings": [ + { + "builtin": "operator", + "override": { + "question": { + "en": "What is the operator of this telecom exchange?" + }, + "render": { + "en": "This telecom exchange is operated by {operator}." + } + } + }, + { + "id": "medium", + "question": { + "en": "What is the medium used by this telecom exchange?" + }, + "mappings": [ + { + "if": "telecom:medium=copper", + "then": { + "en": "The landlines connected to this telecom exchange use copper wiring." + } + }, + { + "if": "telecom:medium=fibre", + "then": { + "en": "The landlines connected to this telecom exchange use fibre optics." + } + }, + { + "if": "telecom:medium=coaxial", + "then": { + "en": "The landlines connected to this telecom exchange use coaxial cable." + } + } + ] + } + ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": false + } +} \ No newline at end of file diff --git a/assets/layers/telecom_exchange/telecom_exchange.svg b/assets/layers/telecom_exchange/telecom_exchange.svg new file mode 100644 index 0000000000..561e5ad4bc --- /dev/null +++ b/assets/layers/telecom_exchange/telecom_exchange.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/layers/telecom_exchange/telecom_exchange.svg.license b/assets/layers/telecom_exchange/telecom_exchange.svg.license new file mode 100644 index 0000000000..9cf0273546 --- /dev/null +++ b/assets/layers/telecom_exchange/telecom_exchange.svg.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: Abu Badali; Sarang; Robin van der Linde +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/assets/themes/infrastructure/infrastructure.json b/assets/themes/infrastructure/infrastructure.json index 674def81e6..4430e2d00e 100644 --- a/assets/themes/infrastructure/infrastructure.json +++ b/assets/themes/infrastructure/infrastructure.json @@ -16,6 +16,7 @@ "minzoom": 17 } }, - "street_cabinet" + "street_cabinet", + "telecom_exchange" ] } \ No newline at end of file diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 27da2318ad..ba471a9390 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -489,6 +489,10 @@ "if": "theme=indoors", "then": "./assets/layers/entrance/entrance.svg" }, + { + "if": "theme=infrastructure", + "then": "./assets/layers/street_cabinet/street_cabinet.svg" + }, { "if": "theme=insects", "then": "./assets/layers/insect_hotel/insect_hotel.svg"