Add universities and colleges, reorganize

This commit is contained in:
pietervdvn 2022-06-09 12:24:54 +02:00
parent f5986f25cc
commit e44133645a
7 changed files with 90 additions and 17 deletions

View file

@ -1,14 +1,4 @@
[
{
"path": "blackboard.svg",
"license": "CC-BY-SA 4.0",
"authors": [
"VideoPlasty"
],
"sources": [
"https://commons.wikimedia.org/wiki/File:Blackboard_Flat_Icon_Vector.svg"
]
},
{
"path": "childcare.svg",
"license": "CC-BY",

View file

@ -135,7 +135,7 @@
},
"multiAnswer": true,
"render": {
"en":"This is a school for"
"en":"This is a school for {school:for}"
},
"freeform": {
"key": "school:for",

View file

@ -0,0 +1,82 @@
{
"id": "tertiary_education",
"name": {
"en": "Colleges and universities"
},
"description": "Layer with all tertiary education institutes (ISCED:2011 levels 6,7 and 8)",
"source": {
"osmTags": {
"or": [
"amenity=college",
"amenity=university",
{
"and": [
"amenity=school",
{
"or": [
"isced:2011:level~.*bachelor.*",
"isced:2011:level~.*master.*"
]
}
]
}
]
}
},
"title": {
"mappings": [
{
"if": "name~*",
"then": {
"*":"{name}"
}
},
{
"if": "amenity=college",
"then": {
"en": "College",
"nl": "Hogeschool"
}
},{
"if": "amenity=university",
"then": {
"en": "University"
}
},
{
"if": "amenity=school",
"then": {
"en": "School providing tertiary education"
}
}
]
},
"tagRenderings": [
"school.capacity",
"school.gender",
"school.target-audience",
"website",
"email",
"phone"
],
"mapRendering": [{
"location": ["point","centroid"],
"iconSize": {
"render": "40,40,center"
},
"label": {
"mappings": [
{
"if": "name~*",
"then": "<div class='bg-white rounded-lg p-1'>{name}</div>"
}
]
},
"icon": "circle:white;./assets/layers/school/college.svg"
},
{
"color": "#22f1f4",
"width": 1
}
]
}

View file

@ -1,5 +1,5 @@
{
"id": "schools",
"id": "education",
"description": {
"en": "On this map, you'll find information about all types of schools and eduction and can easily add more information"
},
@ -15,6 +15,7 @@
"icon": "./assets/layers/school/college.svg",
"layers": [
"kindergarten_childcare",
"school"
"school",
"tertiary_education"
]
}

View file

@ -155,6 +155,10 @@
"if": "theme=drinking_water",
"then": "./assets/themes/drinking_water/logo.svg"
},
{
"if": "theme=education",
"then": "./assets/layers/school/college.svg"
},
{
"if": "theme=entrances",
"then": "./assets/layers/entrance/door.svg"
@ -259,10 +263,6 @@
"if": "theme=postboxes",
"then": "./assets/themes/postboxes/postbox.svg"
},
{
"if": "theme=schools",
"then": "./assets/layers/school/college.svg"
},
{
"if": "theme=shops",
"then": "./assets/themes/shops/shop.svg"