From 9a3aedacbf8f41fe7c7e49c09c9e3f452490eca6 Mon Sep 17 00:00:00 2001 From: Ward Beyens Date: Thu, 8 Jul 2021 12:02:42 +0200 Subject: [PATCH] natuurpunt visitor centre layer --- .../information.svg | 253 +++++++++++++++++- .../license_info.json | 12 + .../visitor_information_centre.json | 46 +++- assets/themes/natuurpunt/natuurpunt.json | 15 +- langs/layers/en.json | 7 + langs/layers/nl.json | 7 + 6 files changed, 329 insertions(+), 11 deletions(-) create mode 100644 assets/layers/visitor_information_centre/license_info.json diff --git a/assets/layers/visitor_information_centre/information.svg b/assets/layers/visitor_information_centre/information.svg index 873ef4d32..3a43f1128 100644 --- a/assets/layers/visitor_information_centre/information.svg +++ b/assets/layers/visitor_information_centre/information.svg @@ -1 +1,252 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/visitor_information_centre/license_info.json b/assets/layers/visitor_information_centre/license_info.json new file mode 100644 index 000000000..8e1ac5bb9 --- /dev/null +++ b/assets/layers/visitor_information_centre/license_info.json @@ -0,0 +1,12 @@ +[ + { + "authors": [ + "Bobarino" + ], + "path": "information.svg", + "license": "CC0", + "sources": [ + "https://commons.wikimedia.org/wiki/File:Information.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/visitor_information_centre/visitor_information_centre.json b/assets/layers/visitor_information_centre/visitor_information_centre.json index 57e14db50..11e1ae470 100644 --- a/assets/layers/visitor_information_centre/visitor_information_centre.json +++ b/assets/layers/visitor_information_centre/visitor_information_centre.json @@ -4,17 +4,47 @@ "en": "Visitor Information Centre", "nl": "Bezoekerscentrum" }, - "minzoom": 12, + "minzoom": 8, "source": { "osmTags": { - "or": ["information=visitor_centre", "information=office"] + "and": [ + { + "or": [ + "information=visitor_centre", + "information=office" + ] + } + ] } }, "title": { "render": { - "en": "{key}", - "nl": "{key}" - } + "nl": "Bezoekerscentrum", + "en": "Visitor Centre" + }, + "mappings": [ + { + "if": { + "and": [ + "name:nl~*" + ] + }, + "then": { + "nl": "{name:nl}" + } + }, + { + "if": { + "and": [ + "name~*" + ] + }, + "then": { + "nl": "{name}", + "en": "{name}" + } + } + ] }, "description": { "en": "A visitor center offers information about a specific attraction or place of interest where it is located.", @@ -23,7 +53,7 @@ "tagRenderings": [], "hideUnderlayingFeaturesMinPercentage": 0, "icon": { - "render": "./assets/layers/information_board/board.svg" + "render": "./assets/layers/visitor_information_centre/information.svg" }, "width": { "render": "8" @@ -32,8 +62,8 @@ "render": "40,40,center" }, "color": { - "render": "#00f" + "render": "#E64C00" }, "presets": [], "wayHandling": 1 -} +} \ No newline at end of file diff --git a/assets/themes/natuurpunt/natuurpunt.json b/assets/themes/natuurpunt/natuurpunt.json index 17f66406f..d9df8db62 100644 --- a/assets/themes/natuurpunt/natuurpunt.json +++ b/assets/themes/natuurpunt/natuurpunt.json @@ -56,7 +56,18 @@ "picnic_table", "birdhide", "toilet", - "visitor_information_centre" + { + "builtin": "visitor_information_centre", + "override": { + "source": { + "osmTags": { + "+and": [ + "operator=Natuurpunt" + ] + } + } + } + } ], "roamingRenderings": [] -} +} \ No newline at end of file diff --git a/langs/layers/en.json b/langs/layers/en.json index 24a6bfac6..dfbc13dd4 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -1769,5 +1769,12 @@ "question": "Do you want to add a description?" } } + }, + "visitor_information_centre": { + "name": "Visitor Information Centre", + "title": { + "render": "{name}" + }, + "description": "A visitor center offers information about a specific attraction or place of interest where it is located." } } \ No newline at end of file diff --git a/langs/layers/nl.json b/langs/layers/nl.json index ca4156d91..6673d6314 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -1999,5 +1999,12 @@ } } } + }, + "visitor_information_centre": { + "name": "Bezoekerscentrum", + "title": { + "render": "{name}" + }, + "description": "Een bezoekerscentrum biedt informatie over een specifieke attractie of bezienswaardigheid waar het is gevestigd." } } \ No newline at end of file