forked from MapComplete/MapComplete
Add first version of schools
This commit is contained in:
parent
1596e23ac6
commit
f7cacc15d3
19 changed files with 788 additions and 20 deletions
153
assets/layers/kindergarten_childcare/kindergarten_childcare.json
Normal file
153
assets/layers/kindergarten_childcare/kindergarten_childcare.json
Normal file
|
@ -0,0 +1,153 @@
|
|||
{
|
||||
"id": "kindergarten_childcare",
|
||||
"name": {
|
||||
"en": "Kindergartens and childcare"
|
||||
},
|
||||
"description": "Shows kindergartens and preschools. Both are grouped in one layer, as they are regularly confused with each other",
|
||||
"minzoom": 12,
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"or": [
|
||||
"amenity=childcare",
|
||||
"amenity=kindergarten"
|
||||
]
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "amenity=kindergarten",
|
||||
"then": {
|
||||
"en": "Kindergarten {name}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "amenity=childcare",
|
||||
"then": {
|
||||
"en": "Childcare {name}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "childcare-type",
|
||||
"question": {
|
||||
"en": "What type of facility is this?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "amenity=kindergarten",
|
||||
"then": {
|
||||
"en": "This is a kindergarten (also known as <i>preschool</i>) where small kids receive early education."
|
||||
},
|
||||
"addExtraTags": [
|
||||
"isced:level=0",
|
||||
"isced:2011:level=early_childhood"
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": "amenity=childcare",
|
||||
"then": {
|
||||
"en": "This is a childcare facility, such as a nursery or daycare where small kids are looked after. They do not offer an education and are ofter run as private businesses"
|
||||
},
|
||||
"addExtraTags": [
|
||||
"isced:level=",
|
||||
"isced:2011:level="
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "name",
|
||||
"question": "What is the name of this facility?",
|
||||
"render": "This facility is named <b>{name}</b>",
|
||||
"freeform": {
|
||||
"key": "name"
|
||||
}
|
||||
},
|
||||
"website",
|
||||
"email",
|
||||
"phone",
|
||||
{
|
||||
"builtin": "opening_hours",
|
||||
"override": {
|
||||
"question": {
|
||||
"en": "When is this childcare opened?"
|
||||
},
|
||||
"condition": "amenity=childcare"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "capacity",
|
||||
"question": {
|
||||
"en": "How much kids (at most) can be enrolled here?"
|
||||
},
|
||||
"render": {
|
||||
"en": "This facility has room for {capacity} kids"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "capacity",
|
||||
"type": "pnat"
|
||||
}
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"title": {
|
||||
"en": "a kindergarten"
|
||||
},
|
||||
"description": "A kindergarten (also known as <i>preschool</i>) is a school where small kids receive early education.",
|
||||
"tags": [
|
||||
"amenity=kindergarten",
|
||||
"isced:level=0",
|
||||
"isced:2011:level=early_childhood"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "a childcare"
|
||||
},
|
||||
"description": "A childcare (also known as <i>a nursery</i> or <i>daycare</i>) is a facility which looks after small kids, but does not offer them an education program.",
|
||||
"tags": [
|
||||
"amenity=kindergarten"
|
||||
]
|
||||
}
|
||||
],
|
||||
"mapRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"label": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "<div class='bg-white rounded-lg p-1'>{name}</div>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "amenity=kindergarten",
|
||||
"then": "circle:white;./assets/layers/kindergarten_childcare/childcare.svg"
|
||||
},
|
||||
{
|
||||
"if": "amenity=childcare",
|
||||
"then": "circle:white;./assets/layers/kindergarten_childcare/childcare.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"color": "#62fc6c",
|
||||
"width": 1
|
||||
}
|
||||
],
|
||||
"allowMove": {
|
||||
"enableRelocation": true,
|
||||
"enableImproveAccuracy": true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue