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
33
assets/layers/school/college.svg
Normal file
33
assets/layers/school/college.svg
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
id="college"
|
||||
width="500"
|
||||
height="500"
|
||||
viewBox="0 0 500 500"
|
||||
version="1.1"
|
||||
sodipodi:docname="college.svg"
|
||||
inkscape:version="1.1.2 (1:1.1+202202050950+0a00cf5339)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs7" />
|
||||
<sodipodi:namedview
|
||||
id="namedview5"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.1752248"
|
||||
inkscape:cx="119.12615"
|
||||
inkscape:cy="225.48877"
|
||||
inkscape:current-layer="college" />
|
||||
<path
|
||||
d="M 250.0465,31 0,147.68837 66.679067,177.69395 v 56.6772 c -20.00372,6.66791 -33.339534,26.67163 -33.339534,46.67535 0,20.00372 13.335814,40.00744 33.339534,46.67535 v 3.33395 l -30.00558,70.01302 c -10.00186,30.00558 -3.333954,63.34511 46.675346,63.34511 50.009297,0 56.677207,-33.33953 46.675347,-63.34511 L 100.0186,331.0558 c 20.00372,-10.00186 33.33953,-26.67163 33.33953,-50.0093 0,-23.33767 -13.33581,-40.00744 -33.33953,-46.67535 V 194.36371 L 250.0465,264.37673 500.093,147.68837 Z m 146.69395,216.70697 -150.0279,66.67906 -80.01488,-36.67348 v 3.33395 c 0,23.33767 -10.00186,43.34139 -26.67163,60.01116 l 20.00372,46.67535 v 3.33395 c 3.33395,13.33581 6.66791,26.67163 3.33395,40.00744 23.33768,10.00186 50.0093,16.66977 83.34884,16.66977 110.02046,0 150.0279,-66.67907 150.0279,-100.0186 z"
|
||||
id="path2"
|
||||
style="stroke-width:33.3395" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
23
assets/layers/school/license_info.json
Normal file
23
assets/layers/school/license_info.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
[
|
||||
{
|
||||
"path": "college.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Maki"
|
||||
],
|
||||
"sources": [
|
||||
"https://labs.mapbox.com/maki-icons/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "school.svg",
|
||||
"license": "CC0",
|
||||
"authors": [
|
||||
"Temaki"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/ideditor/temaki",
|
||||
"https://ideditor.github.io/temaki/docs/"
|
||||
]
|
||||
}
|
||||
]
|
183
assets/layers/school/school.json
Normal file
183
assets/layers/school/school.json
Normal file
|
@ -0,0 +1,183 @@
|
|||
{
|
||||
"id": "school",
|
||||
"name": {
|
||||
"en": "Primary and secondary schools"
|
||||
},
|
||||
"minzoom": 12,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "School <i>{name}</i>"
|
||||
}
|
||||
},
|
||||
"calculatedTags": [
|
||||
"_enclosing=feat.enclosingFeatures('school').map(f => f.feat.properties.id)",
|
||||
"_is_enclosed=feat.properties._enclosing != '[]'"
|
||||
],
|
||||
"isShown": {
|
||||
"render": "yes",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"building~*",
|
||||
"_is_enclosed=true"
|
||||
]
|
||||
},
|
||||
"then": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tagRenderings": [
|
||||
{
|
||||
"render": {
|
||||
"en": "This school is named {name}"
|
||||
},
|
||||
"question": {
|
||||
"en": "What is the name of this school?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "name"
|
||||
},
|
||||
"id": "school-name"
|
||||
},
|
||||
{
|
||||
"id": "capacity",
|
||||
"question": "How much students can at most enroll in this school?",
|
||||
"render": {
|
||||
"en": "This school can enroll at most {capacity} students"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "capacity",
|
||||
"type": "pnat"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "education-level",
|
||||
"question": "What level of education is given on this school?",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "isced:2011:level=primary",
|
||||
"then": {
|
||||
"en": "This is a school where one learns primary skills such as basic literacy and numerical skills. <div class='subtle'>Pupils typically enroll from 6 years old till 12 years old</div>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "isced:2011:level=vocational_lower_secondary",
|
||||
"then": {
|
||||
"en": "This is a school where one learns <b>vocational lower secondary</b> skills with a focus to acquire the necessary knowledge and skill for a particular occupation or trade. <div class='subtle'>This includes programs with a work-based component such as apprenticeships or dual-system education. This is commonly called middle education. Pupils typically enroll from 12 years old till 14 or 15 years old</div>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "isced:2011:level=general_lower_secondary",
|
||||
"then": {
|
||||
"en": "This is a school where one learns <b>general lower secondary</b> skills with a focus on general skills in order to prepare student for further studies. <div class='subtle'>This is commonly called middle education. Pupils typically enroll from 12 years old till 14 or 15 years old</div>"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"if": "isced:2011:level=vocational_upper_secondary",
|
||||
"then": {
|
||||
"en": "This is a school where one learns <b>vocational upper secondary</b> skills with a focus to acquire the necessary knowledge and skill for a particular occupation or trade. <div class='subtle'>This includes programs with a work-based component such as apprenticeships or dual-system education. Pupils typically enroll from 14 or 15 years old till 18 years old</div>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "isced:2011:level=general_upper_secondary",
|
||||
"then": {
|
||||
"en": "This is a school where one learns <b>general upper secondary</b> skills with a focus on general skills in order to prepare student for further studies. <div class='subtle'>Pupils typically enroll from 14 or 15 years old till 18 years old</div>"
|
||||
}
|
||||
}
|
||||
],
|
||||
"multiAnswer": true
|
||||
},
|
||||
{
|
||||
"id": "target-audience",
|
||||
"question": "What is the target audience for this school?",
|
||||
"multiAnswer": true,
|
||||
"mappings": [
|
||||
{
|
||||
"if": "school:for=normal_pupils",
|
||||
"then": {
|
||||
"en": "This is a school where students study skills at their age-adequate level"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "school:for=adults",
|
||||
"then": {
|
||||
"en": "This is a school where adults are taught skills on the level as specified."
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "school:for=autism",
|
||||
"then": {
|
||||
"en": "This is a school with facilities for students on the autism specturm"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "school:for=learning_disabilities",
|
||||
"then": {
|
||||
"en": "This is a school with facilities for students with learning disabilities"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "school:for=blind",
|
||||
"then": {
|
||||
"en": "This is a school with facilities for blind students or students with sight impairments"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "school:for=deaf",
|
||||
"then": {
|
||||
"en": "This is a school with facilities for deaf students or students with hearing impairments"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "school:for=disabilities",
|
||||
"then": {
|
||||
"en": "This is a school with facilities for students with disabilities"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"website",
|
||||
"phone",
|
||||
"email"
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"tags": [
|
||||
"amenity=school","fixme=Added with MapComplete, the precise geometry should still be drawn"
|
||||
],
|
||||
|
||||
"title": {
|
||||
"en": "a primary or secondary school"
|
||||
}
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"osmTags": "amenity=school"
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:white;./assets/layers/school/school.svg",
|
||||
"label": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "<div class='bg-white rounded-lg p-1'>{name}</div>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconSize": {
|
||||
"render": "40,40,center"
|
||||
},
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"color": "#fcd862",
|
||||
"width": 1
|
||||
}
|
||||
]
|
||||
}
|
37
assets/layers/school/school.svg
Normal file
37
assets/layers/school/school.svg
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
version="1.1"
|
||||
x="0"
|
||||
y="0"
|
||||
viewBox="0 0 15 15"
|
||||
id="svg6"
|
||||
sodipodi:docname="school.svg"
|
||||
inkscape:version="1.1.2 (1:1.1+202202050950+0a00cf5339)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs10" />
|
||||
<sodipodi:namedview
|
||||
id="namedview8"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
showgrid="false"
|
||||
inkscape:zoom="19.217129"
|
||||
inkscape:cx="3.5385098"
|
||||
inkscape:cy="1.4570334"
|
||||
inkscape:current-layer="svg6" />
|
||||
<path
|
||||
d="M 9.1416908,2.1457729 V 12.854227 c 0,0 -7.1389694,0 -7.1389694,0 0,0 0,-10.7084541 0,-10.7084541 z M 8.4277939,2.8596699 H 2.7166183 V 12.14033 c 0,0 5.7111756,0 5.7111756,0 z M 3.7874637,5.0013607 c 0,0 3.5694848,0 3.5694848,0 0.3569484,0 0.3569484,0.7138969 0,0.7138969 0,0 -3.5694848,0 -3.5694848,0 -0.3569484,0 -0.3569484,-0.7138969 0,-0.7138969 z m 0,1.4277939 c 0,0 3.5694848,0 3.5694848,0 0.3569484,0 0.3569484,0.7138969 0,0.7138969 0,0 -3.5694848,0 -3.5694848,0 -0.3569484,0 -0.3569484,-0.7138969 0,-0.7138969 z m 0,1.4277939 c 0,0 3.5694848,0 3.5694848,0 0.3569484,0 0.3569484,0.7138969 0,0.7138969 0,0 -3.5694848,0 -3.5694848,0 -0.3569484,0 -0.3569484,-0.7138969 0,-0.7138969 z m 0,1.4277939 c 0,0 3.5694848,0 3.5694848,0 0.3569484,0 0.3569484,0.7138969 0,0.7138969 0,0 -3.5694848,0 -3.5694848,0 -0.3569484,0 -0.3569484,-0.7138969 0,-0.7138969 z"
|
||||
id="path2"
|
||||
style="stroke-width:0.713897" />
|
||||
<path
|
||||
d="m 9.8555878,11.426433 c 0.3569482,0.356949 1.7847422,0.356949 2.1416912,0 0,0 -0.713897,1.427794 -1.070846,1.427794 -0.356948,0 -1.0708452,-1.427794 -1.0708452,-1.427794 z m 0,-7.1389693 c 0,0.3569485 2.1416912,0.3569485 2.1416912,0 0,0 0,6.4250723 0,6.4250723 0,0.356949 -2.1416912,0.356949 -2.1416912,0 0,0 0,-6.4250723 0,-6.4250723 z M 10.926433,2.1457729 c -1.0708452,0 -1.0708452,0.3569485 -1.0708452,0.713897 0,0 0,0.7138969 0,0.7138969 0,0.3569485 2.1416912,0.3569485 2.1416912,0 0,0 0,-0.7138969 0,-0.7138969 0,-0.3569485 0,-0.713897 -1.070846,-0.713897 z"
|
||||
id="path4"
|
||||
style="stroke-width:0.713897" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue