Add hospital layer; Co-authored-by: Hasan Rezaoul <roconmachine>
This commit is contained in:
parent
52f1d86772
commit
b5655b5533
3 changed files with 70 additions and 0 deletions
45
assets/layers/hospital/hospital.json
Normal file
45
assets/layers/hospital/hospital.json
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
"id": "hospital",
|
||||||
|
"name": {
|
||||||
|
"en": "Hospital"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"render": {
|
||||||
|
"en": "Hospital"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minzoom": 12,
|
||||||
|
"source": {
|
||||||
|
"osmTags": "amenity=hospital"
|
||||||
|
},
|
||||||
|
"tagRenderings": [
|
||||||
|
{
|
||||||
|
"id": "name",
|
||||||
|
"render": {
|
||||||
|
"en": "Name of the hospital name is {name}"
|
||||||
|
},
|
||||||
|
"question": {
|
||||||
|
"en": "What does the of the hospital ?"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "name"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"phone",
|
||||||
|
"email",
|
||||||
|
"website"
|
||||||
|
],
|
||||||
|
"mapRendering": [
|
||||||
|
{
|
||||||
|
"icon": {
|
||||||
|
"render": "circle:white;./assets/layers/hospital/hospital.svg"
|
||||||
|
},
|
||||||
|
"iconSize": "40,40,center",
|
||||||
|
"location": [
|
||||||
|
"point",
|
||||||
|
"centroid"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
13
hospital.svg
Normal file
13
hospital.svg
Normal 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 |
12
license_info.json
Normal file
12
license_info.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "hospital.svg",
|
||||||
|
"license": "CC-0",
|
||||||
|
"authors": [
|
||||||
|
"osmcarto"
|
||||||
|
],
|
||||||
|
"sources": [
|
||||||
|
"https://wiki.openstreetmap.org/wiki/File:Hospital-14.svg"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue