From 06a02320eee8a42473eb5a304d640f10e2da66ee Mon Sep 17 00:00:00 2001 From: AlexanderRebai Date: Wed, 6 Jul 2022 09:57:05 +0000 Subject: [PATCH] improved doctors layer --- assets/layers/doctors/doctors.json | 44 +++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/assets/layers/doctors/doctors.json b/assets/layers/doctors/doctors.json index 72d715fe70..2c34b4538c 100644 --- a/assets/layers/doctors/doctors.json +++ b/assets/layers/doctors/doctors.json @@ -17,7 +17,49 @@ }, "minzoom": 13, "tagRenderings": [ - "images" + "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": [ {