Merge all healtcare layers into a map theme

This commit is contained in:
pietervdvn 2022-07-07 23:27:36 +02:00
parent 9292ec1807
commit d8d0fa685b
11 changed files with 52 additions and 154 deletions

View file

@ -120,7 +120,11 @@
"mapRendering": [
{
"icon": {
"render": "circle:white;./assets/layers/doctors/doctors.svg"
"render": "circle:white;./assets/layers/doctors/doctors.svg",
"mappings": [{
"if": "amenity=dentist",
"then": "circle:white;./assets/layers/doctors/dentist.svg"
}]
},
"iconSize": "40,40,center",
"location": [

View file

@ -1,4 +1,14 @@
[
{
"path": "dentist.svg",
"license": "cc0",
"authors": [
"osmcarto"
],
"sources": [
"https://wiki.openstreetmap.org/wiki/File:Dentist-14.svg"
]
},
{
"path": "doctors.svg",
"license": "cc0",

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg
width="14"
height="14"
version="1.1"
viewBox="0 0 3.7042 3.7042"
xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0 -293.3)">
<path transform="matrix(.26458 0 0 .26458 0 293.3)"
d="m7 0a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7zm-1 3h2v3h3v2h-3v3h-2v-3h-3v-2h3v-3z"
fill="#BF0000"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 397 B

View file

@ -0,0 +1,12 @@
[
{
"path": "hospital.svg",
"license": "CC-0",
"authors": [
"osmcarto"
],
"sources": [
"https://wiki.openstreetmap.org/wiki/File:Hospital-14.svg"
]
}
]

View file

@ -1,12 +0,0 @@
[
{
"path": "pharmacy.svg",
"license": "CC0",
"authors": [
"OSM-carto"
],
"sources": [
"https://wiki.openstreetmap.org/wiki/File:Pharmacy-14.svg"
]
}
]

View file

@ -1,102 +0,0 @@
{
"id": "pharmacies",
"name": {
"en": "pharmacies"
},
"title": {
"render": {
"en": "{name}"
}
},
"source": {
"osmTags": {
"and": [
"amenity=pharmacy"
],
"or": [
"dispensing=yes"
]
}
},
"minzoom":13,
"tagRenderings": [
"images",
"opening_hours",
"phone",
"email",
"website",
"dispensing",
{
"id": "wheelchair",
"render": {
"en": "Easily accessible for wheelchair users: {wheelchair}"
},
"question": {
"en": "Is this pharmacy easy to access on a wheelchair?"
},
"freeform": {
"key": "wheelchair"
},
"mappings": [
{
"if": "wheelchair=yes",
"then": {
"en": "Yes, this pharmacy is easy to access on a wheelchair"
}
},
{
"if": "wheelchair=no",
"then": {
"en": "No, this pharmacy is easy to access on a wheelchair"
}
},
{
"if": "wheelchair=limited",
"then": {
"en": "This pharmacy has limited access for wheelchair users"
}
}
]
},
{
"id": "drive_through",
"render": {
"en": "Pharmacy drive through: {drive_through}"
},
"question": {
"en": "Does this pharmacy have a drive through?"
},
"freeform": {
"key": "drive_through"
},
"mappings": [
{
"if": "drive_through=yes",
"then": {
"en": "Yes, this pharmacy has a drive through"
}
},
{
"if": "drive_through=no",
"then": {
"en": "No, this pharmacy does not have a drive through"
}
}
]
}
],
"mapRendering": [
{
"icon": {
"render": ""
},
"iconSize": "40,40,bottom",
"location": [
"point",
"centroid"
]
}
]
}

View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="14" height="14" viewBox="0 0 14 14">
<rect width="14" height="14" x="0" y="0" id="canvas" style="fill:none;stroke:none;visibility:hidden"/>
<path d="m 4,4 -2,2 0,8 10,0 0,-8 -2,-2.0000003 z m 2,2 2,0 0,2 2,0 0,2 -2,0 0,2 -2,0 0,-2 -2,0 0,-2 2,0 z M 4,0 4,3 10,3 10,0 z" id="pharmacy" style="fill:#BF0000"/>
</svg>

Before

Width:  |  Height:  |  Size: 491 B

View file

@ -1,10 +1,10 @@
{
"id": "doctors",
"id": "healthcare",
"title": {
"en": "Doctors"
"en": "Healthcare"
},
"description": {
"en": "On this map, publicly accessible doctors offices are shown and can be easily added"
"en": "On this map, various healthcare related items are shown"
},
"maintainer": "MapComplete",
"icon": "./assets/layers/doctors/doctors.svg",
@ -15,6 +15,8 @@
"startZoom": 16,
"widenFactor": 2,
"layers": [
"doctors"
"doctors",
"hospital",
"pharmacy"
]
}

View file

@ -151,10 +151,6 @@
"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"
@ -211,6 +207,10 @@
"if": "theme=hailhydrant",
"then": "./assets/themes/hailhydrant/logo.svg"
},
{
"if": "theme=healthcare",
"then": "./assets/layers/doctors/doctors.svg"
},
{
"if": "theme=kerbs_and_crossings",
"then": "./assets/layers/kerbs/KerbIcon.svg"
@ -259,10 +259,6 @@
"if": "theme=pets",
"then": "./assets/layers/dogpark/dog-park.svg"
},
{
"if": "theme=pharmacies",
"then": "./assets/layers/pharmacy/pharmacy.svg"
},
{
"if": "theme=play_forests",
"then": "./assets/layers/play_forest/icon.svg"

View file

@ -1,20 +0,0 @@
{
"id": "pharmacies",
"title": {
"en": "pharmacies"
},
"description": {
"en": "On this map, pharmacies are shown and can be easily added"
},
"maintainer": "MapComplete",
"icon": "./assets/layers/pharmacy/pharmacy.svg",
"version": "0",
"startLat": 50.8465573,
"defaultBackgroundId": "CartoDB.Voyager",
"startLon": 4.351697,
"startZoom": 16,
"widenFactor": 2,
"layers": [
"pharmacy"
]
}

View file

@ -42,6 +42,7 @@
"startZoom": 1,
"widenFactor": 3,
"layers": [
"shops"
"shops",
"pharmacy"
]
}