From c79c6f85f438a3aaa5dae133e08c2c3c87e62408 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Tue, 6 Jul 2021 16:45:17 +0200 Subject: [PATCH 1/3] Basic cyclestreet --- assets/themes/cycle_infra/cycle_infra.json | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/assets/themes/cycle_infra/cycle_infra.json b/assets/themes/cycle_infra/cycle_infra.json index aaf8d6599..4931b263d 100644 --- a/assets/themes/cycle_infra/cycle_infra.json +++ b/assets/themes/cycle_infra/cycle_infra.json @@ -237,6 +237,46 @@ "render": "#f90" }, "presets": [] + }, + { + "id": "cyclestreets", + "name": { + "en": "Cyclestreets", + "nl": "Fietsstraten" + }, + "minzoom": 12, + "source": { + "osmTags": { + "and": [ + "cyclestreet=yes" + ] + } + }, + "title": { + "render": { + "en": "Dedicated cyclestreet", + "nl": "Fietsstraten" + } + }, + "description": { + "en": "Bicycles have priority and overtaking isn't allowed, the maximum speed is 30 km/h", + "nl": "Fietsen hebben prioriteit en inhalen is niet toegestaan, de maximumsnelheid is 30 km/h" + }, + "tagRenderings": [], + "hideUnderlayingFeaturesMinPercentage": 0, + "icon": { + "render": "./assets/svg/bug.svg" + }, + "width": { + "render": "8" + }, + "iconSize": { + "render": "40,40,center" + }, + "color": { + "render": "#00f" + }, + "presets": [] } ], "overrideAll": { From 179e06cec62466c83688dcc5ec68b860cccad703 Mon Sep 17 00:00:00 2001 From: pgm-chardelv1 Date: Wed, 7 Jul 2021 09:51:06 +0200 Subject: [PATCH 2/3] Fixes keys for maxspeed --- assets/themes/cycle_infra/cycle_infra.json | 25 ++++++++++++++-------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/assets/themes/cycle_infra/cycle_infra.json b/assets/themes/cycle_infra/cycle_infra.json index 4931b263d..8c2b58b97 100644 --- a/assets/themes/cycle_infra/cycle_infra.json +++ b/assets/themes/cycle_infra/cycle_infra.json @@ -88,7 +88,8 @@ "tagRenderings": [ { "render": { - "en": "The maximum speed on this road is {speed}" + "en": "The maximum speed on this road is {maxspeed} km/h", + "nl": "De maximumsnelheid op deze weg is {maxspeed} km/u" }, "freeform": { "key": "maxspeed", @@ -98,36 +99,42 @@ { "if": "maxspeed=20", "then": { - "en": "The maximum speed is 20 km/h" + "en": "The maximum speed is 20 km/h", + "nl": "De maximumsnelheid is 20 km/u" } }, { "if": "maxspeed=30", "then": { - "en": "The maximum speed is 30 km/h" + "en": "The maximum speed is 30 km/h", + "nl": "De maximumsnelheid is 30 km/u" } }, { "if": "maxspeed=50", "then": { - "en": "The maximum speed is 50 km/h" + "en": "The maximum speed is 50 km/h", + "nl": "De maximumsnelheid is 50 km/u" } }, { "if": "maxspeed=70", "then": { - "en": "The maximum speed is 70 km/h" + "en": "The maximum speed is 70 km/h", + "nl": "De maximumsnelheid is 70 km/u" } }, { "if": "maxspeed=90", "then": { - "en": "The maximum speed is 90 km/h" + "en": "The maximum speed is 90 km/h", + "nl": "De maximumsnelheid is 90 km/u" } } ], "question": { - "en": "What is the maximum speed in this street?" + "en": "What is the maximum speed in this street?", + "nl": "Wat is de maximumsnelheid in deze straat?" } } ], @@ -173,8 +180,8 @@ "tagRenderings": [ { "render": { - "en": "The maximum speed on this road is {speed} km/h", - "nl": "De maximumsnelheid op deze weg is {speed} km/u" + "en": "The maximum speed on this road is {maxspeed} km/h", + "nl": "De maximumsnelheid op deze weg is {maxspeed} km/u" }, "freeform": { "key": "maxspeed", From 247380ca332e075c47bf8a726dba418dd6813a38 Mon Sep 17 00:00:00 2001 From: pgm-chardelv1 Date: Wed, 7 Jul 2021 15:54:26 +0200 Subject: [PATCH 3/3] Generate question for carriagewidth | Needs to be moved --- assets/themes/cycle_infra/cycle_infra.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/assets/themes/cycle_infra/cycle_infra.json b/assets/themes/cycle_infra/cycle_infra.json index 8c2b58b97..1e5ca91e0 100644 --- a/assets/themes/cycle_infra/cycle_infra.json +++ b/assets/themes/cycle_infra/cycle_infra.json @@ -338,6 +338,20 @@ "en": "What is the surface of the street made from?", "nl": "Waaruit is het oppervlak van de straat gemaakt?" } + }, + { + "render": { + "en": "The carriage width of this road is {width:carriageway}m", + "nl": "De breedte van deze rijbaan in deze straat is {width:carriageway}m" + }, + "freeform": { + "key": "width:carriageway", + "addExtraTags": [] + }, + "question": { + "en": "What is the carriage width of this road (in meters)?", + "nl": "Hoe breed is de rijbaan in deze straat (in meters)?" + } } ] }