Merge pull request #935 from pietervdvn/feature/pharmacy
added pharmacy theme and layer
This commit is contained in:
commit
d418d1a1f3
8 changed files with 261 additions and 0 deletions
12
assets/layers/pharmacy/license_info.json
Normal file
12
assets/layers/pharmacy/license_info.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"path": "pharmacy.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"OSM-carto"
|
||||
],
|
||||
"sources": [
|
||||
"https://wiki.openstreetmap.org/wiki/File:Pharmacy-14.svg"
|
||||
]
|
||||
}
|
||||
]
|
99
assets/layers/pharmacy/pharmacy.json
Normal file
99
assets/layers/pharmacy/pharmacy.json
Normal file
|
@ -0,0 +1,99 @@
|
|||
{
|
||||
"id": "pharmacy",
|
||||
"name": {
|
||||
"en": "pharmacy"
|
||||
},
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "{name}"
|
||||
}
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"amenity=pharmacy"
|
||||
]
|
||||
}
|
||||
},
|
||||
"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": "./assets/layers/pharmacy/pharmacy.svg"
|
||||
},
|
||||
"iconSize": "40,40,bottom",
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
6
assets/layers/pharmacy/pharmacy.svg
Normal file
6
assets/layers/pharmacy/pharmacy.svg
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?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="500" height="500" 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>
|
After Width: | Height: | Size: 493 B |
12
assets/pharmacy/license_info.json
Normal file
12
assets/pharmacy/license_info.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"path": "pharmacy.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"OSM-carto"
|
||||
],
|
||||
"sources": [
|
||||
"https://wiki.openstreetmap.org/wiki/File:Pharmacy-14.svg"
|
||||
]
|
||||
}
|
||||
]
|
102
assets/pharmacy/pharmacy.json
Normal file
102
assets/pharmacy/pharmacy.json
Normal file
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
6
assets/pharmacy/pharmacy.svg
Normal file
6
assets/pharmacy/pharmacy.svg
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?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>
|
After Width: | Height: | Size: 491 B |
|
@ -259,6 +259,10 @@
|
|||
"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"
|
||||
|
|
20
assets/themes/pharmacies/pharmacies.json
Normal file
20
assets/themes/pharmacies/pharmacies.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue