From 2bb48439b5b3e42526be846a708199d786b95132 Mon Sep 17 00:00:00 2001 From: AlexanderRebai Date: Tue, 5 Jul 2022 15:04:14 +0000 Subject: [PATCH] doctors feature --- assets/layers/doctors/doctors.json | 34 +++++++++++++++++++ assets/layers/doctors/doctors.svg | 20 +++++++++++ assets/layers/doctors/license_info.json | 12 +++++++ assets/themes/doctors/doctors.json | 20 +++++++++++ .../mapcomplete-changes.json | 4 +++ 5 files changed, 90 insertions(+) create mode 100644 assets/layers/doctors/doctors.json create mode 100644 assets/layers/doctors/doctors.svg create mode 100644 assets/layers/doctors/license_info.json create mode 100644 assets/themes/doctors/doctors.json diff --git a/assets/layers/doctors/doctors.json b/assets/layers/doctors/doctors.json new file mode 100644 index 000000000..72d715fe7 --- /dev/null +++ b/assets/layers/doctors/doctors.json @@ -0,0 +1,34 @@ +{ + "id": "doctors", + "name": { + "en": "doctors" + }, + "title": { + "render": { + "en": "Doctors Office {name}" + } + }, + "source": { + "osmTags": { + "and": [ + "amenity=doctors" + ] + } + }, + "minzoom": 13, + "tagRenderings": [ + "images" + ], + "mapRendering": [ + { + "icon": { + "render": "pin:#6BC4F7;./assets/layers/doctors/doctors.svg" + }, + "iconSize": "40,40,bottom", + "location": [ + "point", + "centroid" + ] + } + ] +} \ No newline at end of file diff --git a/assets/layers/doctors/doctors.svg b/assets/layers/doctors/doctors.svg new file mode 100644 index 000000000..94516a688 --- /dev/null +++ b/assets/layers/doctors/doctors.svg @@ -0,0 +1,20 @@ + + + + + + + diff --git a/assets/layers/doctors/license_info.json b/assets/layers/doctors/license_info.json new file mode 100644 index 000000000..90889fdc6 --- /dev/null +++ b/assets/layers/doctors/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "doctors.svg", + "license": "cc0", + "authors": [ + "osmcarto" + ], + "sources": [ + "https://wiki.openstreetmap.org/wiki/File:Doctors-14.svg" + ] + } +] \ No newline at end of file diff --git a/assets/themes/doctors/doctors.json b/assets/themes/doctors/doctors.json new file mode 100644 index 000000000..7c191b571 --- /dev/null +++ b/assets/themes/doctors/doctors.json @@ -0,0 +1,20 @@ +{ + "id": "doctors", + "title": { + "en": "Doctors" + }, + "description": { + "en": "On this map, publicly accessible doctors offices are shown and can be easily added" + }, + "maintainer": "MapComplete", + "icon": "./assets/layers/doctors/doctors.svg", + "version": "0", + "startLat": 50.8465573, + "defaultBackgroundId": "CartoDB.Voyager", + "startLon": 4.351697, + "startZoom": 16, + "widenFactor": 2, + "layers": [ + "doctors" + ] +} \ No newline at end of file diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index c21ef5df7..56650d440 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -151,6 +151,10 @@ "if": "theme=cyclofix", "then": "./assets/themes/cyclofix/logo.svg" }, + { + "if": "theme=doctors", + "then": "./assets/layers/doctors/doctors.svg" + }, { "if": "theme=drinking_water", "then": "./assets/themes/drinking_water/logo.svg"