diff --git a/assets/layers/rainbow_crossings/rainbow_crossings.json b/assets/layers/rainbow_crossings/rainbow_crossings.json new file mode 100644 index 000000000..9e8179c20 --- /dev/null +++ b/assets/layers/rainbow_crossings/rainbow_crossings.json @@ -0,0 +1,77 @@ +{ + "id": "rainbow_crossings", + "name": { + "en": "Crossings with rainbow paintings" + }, + "description": { + "en": "Crossings with decorative rainbow paintings" + }, + "source": { + "osmTags": { + "highway=crossing" + } + }, + "minzoom": 17, + "title": { + "render": { + "en": "Crossing" + } + }, + "presets": [ + { + "title": { + "en": "a crossing" + }, + "tags": [ + "highway=crossing" + ], + "description": { + "en": "Pedestrian crossing" + }, + "preciseInput": { + "preferredBackground": [ + "photo" + ], + "snapToLayer": "cycleways_and_roads", + "maxSnapDistance": 25 + } + }, + "tagRenderings": [ + { + "id": "crossing-with-rainbow", + "question": { + "en": "Does this crossing has rainbow paintings?" + }, + "condition": "highway=crossing", + "mappings": [ + { + "if": "crossing:marking=rainbow", + "then": { + "en": "This crossing has rainbow paintings" + } + }, + { + "if": "crossing:marking!=rainbow", + "then": { + "en": "No rainbow paintings here" + } + } + ] + } + ], + "mapRendering": [ + { + "icon": { + "render": "./assets/themes/rainbow_crossings/logo.svg" + }, + "iconSize": "40,40,bottom", + "location": [ + "point", + "centroid" + ] + } + ], + "description": { + "en": "A layer showing pedestrian crossings with rainbow paintings" + } +} diff --git a/assets/themes/rainbow_crossings/license_info.json b/assets/themes/rainbow_crossings/license_info.json new file mode 100644 index 000000000..1e701de22 --- /dev/null +++ b/assets/themes/rainbow_crossings/license_info.json @@ -0,0 +1,10 @@ +[ + { + "path": "logo.svg", + "license": "CC0", + "authors": [ + "bxl-forever" + ], + "sources": [] + } +] diff --git a/assets/themes/rainbow_crossings/logo.svg b/assets/themes/rainbow_crossings/logo.svg new file mode 100644 index 000000000..a5cd70668 --- /dev/null +++ b/assets/themes/rainbow_crossings/logo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/themes/rainbow_crossings/rainbow_crossings.json b/assets/themes/rainbow_crossings/rainbow_crossings.json new file mode 100644 index 000000000..84602a67f --- /dev/null +++ b/assets/themes/rainbow_crossings/rainbow_crossings.json @@ -0,0 +1,22 @@ +{ + "id": "rainbow_crossings", + "title": { + "en": "Rainbow pedestrian crossings" + }, + "description": { + "en": "On this map, rainbow-painted pedestrian crossings are shown and can be easily added" + }, + "maintainer": "", + "icon": "./assets/themes/rainbow_crossings/logo.svg", + "version": "0", + "startLat": 50.8465573, + "defaultBackgroundId": "CartoDB.Voyager", + "startLon": 4.351697, + "startZoom": 16, + "widenFactor": 2, + "layers": [ + "rainbow_crossings" + ] +} + +