From 5a60187f21175801d146023d1e27016600d22498 Mon Sep 17 00:00:00 2001 From: Niels Elgaard Larsen Date: Mon, 18 Apr 2022 18:45:36 +0200 Subject: [PATCH] Dog resources --- assets/themes/dog/Veterinary-First-Aid.svg | 15 + assets/themes/dog/dog-food.svg | 66 ++++ assets/themes/dog/dog-park.svg | 60 ++++ assets/themes/dog/dog.json | 338 +++++++++++++++++++++ assets/themes/dog/dogshop.svg | 68 +++++ assets/themes/dog/license_info.json | 59 ++++ assets/themes/dog/petshop.svg | 93 ++++++ 7 files changed, 699 insertions(+) create mode 100644 assets/themes/dog/Veterinary-First-Aid.svg create mode 100644 assets/themes/dog/dog-food.svg create mode 100644 assets/themes/dog/dog-park.svg create mode 100644 assets/themes/dog/dog.json create mode 100644 assets/themes/dog/dogshop.svg create mode 100644 assets/themes/dog/license_info.json create mode 100644 assets/themes/dog/petshop.svg diff --git a/assets/themes/dog/Veterinary-First-Aid.svg b/assets/themes/dog/Veterinary-First-Aid.svg new file mode 100644 index 0000000000..c6e9a9a675 --- /dev/null +++ b/assets/themes/dog/Veterinary-First-Aid.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/themes/dog/dog-food.svg b/assets/themes/dog/dog-food.svg new file mode 100644 index 0000000000..348f3cbafc --- /dev/null +++ b/assets/themes/dog/dog-food.svg @@ -0,0 +1,66 @@ + +image/svg+xml diff --git a/assets/themes/dog/dog-park.svg b/assets/themes/dog/dog-park.svg new file mode 100644 index 0000000000..4af873c799 --- /dev/null +++ b/assets/themes/dog/dog-park.svg @@ -0,0 +1,60 @@ + +image/svg+xml diff --git a/assets/themes/dog/dog.json b/assets/themes/dog/dog.json new file mode 100644 index 0000000000..ec186f32ec --- /dev/null +++ b/assets/themes/dog/dog.json @@ -0,0 +1,338 @@ +{ + "id": "dog", + "maintainer": "Niels Elgaard Larsen", + "version": "1", + "title": { + "en": "dog POIs", + "da": "hundesteder" + }, + "description": { + "en": "Hundsteder", + "da": "Hundsteder" + }, + "icon": "./assets/themes/dog/dog-park.svg", + "startZoom": 10, + "startLat": 55, + "startLon": 12, + "layers": [ + { + "id": "dogpark", + "source": { + "osmTags": { + "#": "For a description on which tags are possible, see https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md", + "or": [ + "leisure=dog_park", + { + "and": [ + "leisure=park", + "dog=unleashed" + ] + } + ] + } + }, + "#": "The tagrenderings are everything that must be shown and/or asked. Use a full tag-rendering section OR a single string to call a builtin tagrendering (see https://github.com/pietervdvn/MapComplete/blob/develop/Docs/BuiltinQuestions.md)", + "minzoom": 10, + "name": { + "en": "dog parks", + "da": "hundeskove" + }, + "title": { + "render": { + "en": "dog park", + "da": "hundeskov" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + }, + "mapRendering": [ + { + "#": "Rendering block of a mapping which is shown for points AND at the center point of a line/area", + "location": [ + "point", + "centroid" + ], + "iconx": "./assets/themes/dog/dog-park.svg", + "icon": "./assets/themes/dog/dog-park.svg", + "iconSize": "40,40,center", + "label": { + "render": { + "en": "dogpark", + "da": "hundeskov" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + } + }, + { + "#": "Rendering of a line", + "color": "#ff0", + "width": 5 + } + ], + "tagRenderings": [ + { + "id": "dogpark-fenced", + "mappings": [ + { + "if": "barrier=fence", + "then": { + "en": "fenced: Yes", + "da": "indhegnet: Ja" + } + }, + { + "if": "barrier=no", + "then": { + "en": "fenced: No", + "da": "indhegnet: Nej" + } + } + ], + "question": { + "en": "It this dog park fenced in?", + "da": "Er denne hundeskov indhegnet?" + } + }, + { + "id": "dogarea", + "render": { + "en": "areal: {_surface:ha} ha", + "da": "areal: {_surface:ha} ha" + }, + "condition": "_surface:ha!=0" + }, + "reviews", + "images" + ] + }, + { + "id": "dog_food", + "source": { + "osmTags": { + "and": [ + { + "or": [ + "amenity=restaurant", + "amenity=cafe" + ] + }, + { + "or": [ + "dog=unleashed", + "dog=leashed", + "dog=yes" + ] + } + ] + } + }, + "minzoom": 11, + "name": { + "en": "dogfriendly eateries", + "da": "hundevenlige madsteder" + }, + "title": { + "render": { + "en": "dog-friendly eatery", + "da": "hundevenligt spisested" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + }, + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": "./assets/themes/dog/dog-food.svg", + "iconSize": "30,30,center", + "label": { + "render": { + "en": "dog-friendly food", + "da": "hundevenligt madsted" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + } + }, + { + "#": "Rendering of a line", + "color": "#ff0", + "width": 5 + } + ], + "tagRenderings": [ + "website", + "reviews", + "phone", + "images" + ] + }, + { + "id": "dogshop", + "source": { + "osmTags": { + "and": [ + "shop~*", + { + "or": [ + "dog=leashed", + "dog=yes", + "shop=pet" + ] + } + ] + } + }, + "minzoom": 12, + "name": { + "en": "dogfriendly shop", + "da": "hundevenlig butik" + }, + "title": { + "render": { + "en": "dog-friendly shop", + "da": "hundevenlig butik" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + }, + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": { + "render": "./assets/themes/dog/dogshop.svg", + "mappings": [ + { + "if": { + "and": [ + "shop=pet" + ] + }, + "then": "./assets/themes/dog/petshop.svg" + } + ] + }, + "iconSize": "30,30,center", + "label": { + "render": { + "en": "dog friendly shop", + "da": "hundevenlig butik" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + } + }, + { + "#": "Rendering of a line", + "color": "#ff0", + "width": 5 + } + ], + "tagRenderings": [ + { + "id": "shoptype", + "render": { + "en": "sells {shop}", + "da": "sælger {shop}" + }, + "condition": "shop!=pet" + }, + "website", + "reviews", + "phone", + "images" + ] + }, + { + "id": "veterinary", + "source": { + "osmTags": { + "or": [ + "amenity=veterinary" + ] + } + }, + "minzoom": 10, + "name": { + "en": "veterinary", + "da": "dyrlæge" + }, + "title": { + "render": { + "en": "Veterinary", + "da": "dyrlæge" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "*": "{name}" + } + } + ] + }, + "mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": "./assets/themes/dog/Veterinary-First-Aid.svg", + "iconSize": "30,30,center" + }, + { + "#": "Rendering of a line", + "color": "#ff0", + "width": 5 + } + ], + "tagRenderings": [ + "website", + "reviews", + "phone" + ] + } + ] +} \ No newline at end of file diff --git a/assets/themes/dog/dogshop.svg b/assets/themes/dog/dogshop.svg new file mode 100644 index 0000000000..2383aeb5bd --- /dev/null +++ b/assets/themes/dog/dogshop.svg @@ -0,0 +1,68 @@ + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/assets/themes/dog/license_info.json b/assets/themes/dog/license_info.json new file mode 100644 index 0000000000..b51791ea3b --- /dev/null +++ b/assets/themes/dog/license_info.json @@ -0,0 +1,59 @@ +[ + { + "path": "Veterinary-First-Aid.svg", + "license": "PD", + "authors": [ + "Niels Elgaard Larsen", + "Gordon Dylan Johnson" + ], + "sources": [ + "https://openclipart.org/detail/278711/veterinary-first-aid" + ] + }, + { + "path": "dog-food.svg", + "license": "PD", + "authors": [ + "Public Domain Symbols", + "Jean Victor Balin ", + "Niels Elgaard Larsen" + ], + "sources": [ + "https://openclipart.org/detail/260714/dogpark15", + "https://openclipart.org/detail/25719/aiga-restaurant" + ] + }, + { + "path": "dog-park.svg", + "license": "CC0 1.0", + "authors": [ + "Public Domain Symbols", + "Niels Elgaard Larsen" + ], + "sources": [ + "https://openclipart.org/detail/260714/dogpark15" + ] + }, + { + "path": "dogshop.svg", + "license": "CC0 1.0", + "authors": [ + "Public Domain Symbols", + "Niels Elgaard Larsen" + ], + "sources": [ + "https://openclipart.org/detail/260714/dogpark15" + ] + }, + { + "path": "petshop.svg", + "license": "CC0 1.0", + "authors": [ + "Niels Elgaard Larsen", + "Public Domain Symbols" + ], + "sources": [ + "https://openclipart.org/detail/260857/veterinary15" + ] + } +] \ No newline at end of file diff --git a/assets/themes/dog/petshop.svg b/assets/themes/dog/petshop.svg new file mode 100644 index 0000000000..22d104fd6f --- /dev/null +++ b/assets/themes/dog/petshop.svg @@ -0,0 +1,93 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + +