diff --git a/assets/layers/doctors/doctors.json b/assets/layers/doctors/doctors.json new file mode 100644 index 000000000..2c34b4538 --- /dev/null +++ b/assets/layers/doctors/doctors.json @@ -0,0 +1,76 @@ +{ + "id": "doctors", + "name": { + "en": "doctors" + }, + "title": { + "render": { + "en": "Doctors Office {name}" + } + }, + "source": { + "osmTags": { + "and": [ + "amenity=doctors" + ] + } + }, + "minzoom": 13, + "tagRenderings": [ + "images", + "opening_hours", + "phone", + "email", + "website", + { + "id": "specialty", + "render": { + "en": "This doctor is specialized in {healthcare:speciality}" + }, + "question": { + "en": "What is this doctor specialized in?" + }, + "freeform": { + "key": "healthcare:speciality" + }, + "mappings": [ + { + "if": "healthcare:speciality=general", + "then": { + "en": "This is a general practitioner" + } + }, + { + "if": "healthcare:speciality=gynaecology", + "then": { + "en": "This is a gynaecologist" + } + }, + { + "if": "healthcare:speciality=psychiatry", + "then": { + "en": "This is a psychiatrist" + } + }, + { + "if": "healthcare:speciality=paediatrics", + "then": { + "en": "This is a paediatrician" + } + } + ] + } + ], + "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"