Themes(infrastructure): Add telecom exchange

This commit is contained in:
Robin van der Linde 2025-07-25 01:01:16 +02:00
parent cd6bbdf64a
commit 80953d35ac
6 changed files with 108 additions and 1 deletions

View file

@ -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"
]
}
]

View file

@ -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
}
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Abu Badali; Sarang; Robin van der Linde
SPDX-License-Identifier: CC0-1.0

View file

@ -16,6 +16,7 @@
"minzoom": 17 "minzoom": 17
} }
}, },
"street_cabinet" "street_cabinet",
"telecom_exchange"
] ]
} }

View file

@ -489,6 +489,10 @@
"if": "theme=indoors", "if": "theme=indoors",
"then": "./assets/layers/entrance/entrance.svg" "then": "./assets/layers/entrance/entrance.svg"
}, },
{
"if": "theme=infrastructure",
"then": "./assets/layers/street_cabinet/street_cabinet.svg"
},
{ {
"if": "theme=insects", "if": "theme=insects",
"then": "./assets/layers/insect_hotel/insect_hotel.svg" "then": "./assets/layers/insect_hotel/insect_hotel.svg"