diff --git a/assets/layers/speed_camera/speed_camera.json b/assets/layers/speed_camera/speed_camera.json index 33cb0a52a..883635e59 100644 --- a/assets/layers/speed_camera/speed_camera.json +++ b/assets/layers/speed_camera/speed_camera.json @@ -31,6 +31,12 @@ "render": { "en": "The maximum speed allowed is {canonical(maxspeed)}" } + }, + { + "id": "ref", + "render": { + "en": "The reference number of this speed camera is {ref}" + } } ], "presets": [ @@ -39,7 +45,7 @@ "highway=speed_camera" ], "title": { - "en": "a speed Camera" + "en": "a speed camera" }, "preciseInput": { "preferredBackground": "photo", diff --git a/assets/layers/speed_display/license_info.json b/assets/layers/speed_display/license_info.json new file mode 100644 index 000000000..04cf54418 --- /dev/null +++ b/assets/layers/speed_display/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "speed_display.svg", + "license": "CC0", + "authors": [ + "Robin van der Linde" + ], + "sources": [ + "https://www.keshikan.net/fonts-e.html" + ] + } +] \ No newline at end of file diff --git a/assets/layers/speed_display/speed_display.json b/assets/layers/speed_display/speed_display.json new file mode 100644 index 000000000..4c2b1fa48 --- /dev/null +++ b/assets/layers/speed_display/speed_display.json @@ -0,0 +1,132 @@ +{ + "id": "speed_display", + "name": { + "en": "Speed Display" + }, + "description": { + "en": "Layer showing speed displays that alert drivers of their speed." + }, + "title": { + "render": { + "en": "Speed Display" + } + }, + "minzoom": 12, + "source": { + "osmTags": "highway=speed_display" + }, + "tagRenderings": [ + { + "id": "maxspeed", + "question": { + "en": "What is the maximum speed allowed at this speed display?" + }, + "freeform": { + "key": "maxspeed", + "type": "pnat", + "placeholder": { + "en": "Speed allowed at speed display" + } + }, + "render": { + "en": "The maximum speed allowed at this speed display is {canonical(maxspeed)}" + } + }, + { + "id": "inscription", + "question": { + "en": "What is the text on this speed display?" + }, + "freeform": { + "key": "inscription", + "type": "string", + "placeholder": { + "en": "Text on speed display (e.g. 'Your speed')" + } + }, + "render": { + "en": "The text on this speed display is {inscription}" + } + } + ], + "presets": [ + { + "title": { + "en": "a speed display" + }, + "tags": [ + "highway=speed_display" + ], + "preciseInput": { + "preferredBackground": "photo" + } + } + ], + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": "./assets/layers/speed_display/speed_display.svg" + } + ], + "units": [ + { + "appliesToKey": [ + "maxspeed" + ], + "applicableUnits": [ + { + "#": "km/h is the default for a maxspeed; should be empty string", + "canonicalDenomination": "", + "alternativeDenomination": [ + "km/u", + "kmh", + "kph" + ], + "human": { + "en": "kilometers/hour", + "ca": "quilòmetres/hora", + "es": "kilómetros/hora", + "nl": "kilometers/uur", + "de": "Kilometer/Stunde" + }, + "humanShort": { + "en": "km/h", + "ca": "km/h", + "es": "km/h", + "nl": "km/u", + "de": "km/h" + } + }, + { + "canonicalDenomination": "mph", + "useIfNoUnitGiven": [ + "gb", + "us" + ], + "alternativeDenomination": [ + "m/u", + "mh", + "m/ph" + ], + "human": { + "en": "miles/hour", + "ca": "milles/hora", + "es": "millas/hora", + "nl": "miles/uur", + "de": "Meilen/Stunde" + }, + "humanShort": { + "en": "mph", + "ca": "mph", + "es": "mph", + "nl": "mph", + "de": "mph" + } + } + ] + } + ] +} diff --git a/assets/layers/speed_display/speed_display.svg b/assets/layers/speed_display/speed_display.svg new file mode 100644 index 000000000..45546f684 --- /dev/null +++ b/assets/layers/speed_display/speed_display.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/themes/maxspeed/maxspeed.json b/assets/themes/maxspeed/maxspeed.json index 4e8f4546c..9d3e18d76 100644 --- a/assets/themes/maxspeed/maxspeed.json +++ b/assets/themes/maxspeed/maxspeed.json @@ -29,6 +29,7 @@ "widenFactor": 0.01, "layers": [ "maxspeed", - "speed_camera" + "speed_camera", + "speed_display" ] }