From 49f7857eb03e62a5a77c1511ce226cba833630a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= Date: Sun, 11 Jul 2021 12:46:22 +0200 Subject: [PATCH] Cyclenodes: add ability to add nodes --- assets/themes/cyclenodes/cyclenodes.json | 35 ++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/assets/themes/cyclenodes/cyclenodes.json b/assets/themes/cyclenodes/cyclenodes.json index 5b7ef569f6..d70eae42ba 100644 --- a/assets/themes/cyclenodes/cyclenodes.json +++ b/assets/themes/cyclenodes/cyclenodes.json @@ -81,12 +81,18 @@ "en": "nodes" }, "source": { - "osmTags": "rcn_ref~*" + "osmTags": { + "or": [ + "network:type=node_network", + "rcn_ref~*" + ] + } }, "minzoom": 12, "title": { "render": { - "en": "cycle node {rcn_ref}" + "en": "cycle node {rcn_ref}", + "de": "Knotenpunkt" } }, "label": { @@ -94,9 +100,32 @@ { "if": "rcn_ref~*", "then": "
{rcn_ref}
" + }, + { + "if": "rcn_ref=", + "then": "
?
" } ] }, + "presets": [ + { + "title": { + "de": "Knotenpunkt" + }, + "tags": [ + "network:type=node_network" + ] + }, + { + "title": { + "de": "Knotenpunkt im Netzwerk Spree-Neiße" + }, + "tags": [ + "network:type=node_network", + "cycle_network=Knotenpunktwegweisung Spree-Neiße" + ] + } + ], "tagRenderings": [ { "question": { @@ -132,4 +161,4 @@ ] } ] -} \ No newline at end of file +}