Merge branch 'develop' into feature/maproulette

This commit is contained in:
Robin van der Linde 2022-07-19 09:38:12 +02:00
commit 330f1f53f3
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
72 changed files with 29673 additions and 611 deletions

View file

@ -323,5 +323,6 @@
"render": "1"
}
}
]
],
"deletion": true
}

View file

@ -0,0 +1,81 @@
{
"id": "indoors",
"name": {
"en": "indoors"
},
"source": {
"osmTags": {
"or": [
"indoor=room",
"indoor=area",
"indoor=wall",
"indoor=door",
"indoor=level"
]
}
},
"title": {
"render": {
"en": "Indoor area {name}"
},
"mappings": [
{
"if": "indoor=room",
"then": "Indoor Room {name}"
},
{
"if": "indoor=area",
"then": "Indoor Area {name}"
},
{
"if": "indoor=wall",
"then": "Indoor Wall {name}"
},
{
"if": "indoor=corridor",
"then": "Indoor Corridor {name}"
},
{
"if": "indoor=door",
"then": "Indoor Door {name}"
},
{
"if": "indoor=level",
"then": "Indoor Level {name}"
}
]
},
"minzoom": 13,
"tagRenderings": [
"images"
],
"mapRendering": [
{
"color": {
"render": "#bb004488"
},
"width": {
"render": "8"
},
"offset": {
"render": "-4"
},
"fill": "no"
},
{
"color": "red",
"fill": "no",
"width": "2"
},
{
"label": {
"render": "<div style='margin-top: -20px; color:#013220; background:white' class='rounded-full p-1 font-bold'>{name}</div>",
"condition": "name~*"
},
"location": [
"point",
"centroid"
]
}
]
}

View file

@ -6,7 +6,15 @@
"title": {
"render": {
"en": "{name}"
}
},
"mappings": [
{
"if": "name=",
"then": {
"en": "Pharmacy"
}
}
]
},
"source": {
"osmTags": {
@ -60,5 +68,29 @@
"centroid"
]
}
]
],
"filter": [
{
"id": "drive-through",
"options": [
{
"question": {
"en": "Has drive through"
},
"osmTags": "drive_through=yes"
}
]
},
{
"id": "dispensing",
"options": [
{
"question": {
"en": "Pharmacy able to provide prescription drugs"
},
"osmTags": "dispensing=yes"
}
]
}
]
}

View file

@ -0,0 +1,12 @@
[
{
"path": "walls_and_buildings.png",
"license": "CC0",
"authors": [
"OSM"
],
"sources": [
"https://wiki.openstreetmap.org/wiki/File:Barrier_fence_mapnik.png#file"
]
}
]

View file

@ -43,5 +43,32 @@
"render": "2"
}
}
],
"calculatedTags": [
"_entrance_properties=feat.overlapWith('entrance')?.map(e => e.feat.properties).filter(p => p !== undefined).filter(p => p.width !== undefined)",
"_entrance:id=feat.get('_entrance_properties')?.map(e => e.id)?.at(0)",
"_entrance:width=feat.get('_entrance_properties')?.map(e => e.width)"
],
"tagRenderings": [
{
"id": "_entrance:width",
"render": {
"en": "<a href ='#{_entrance:id} '>This door has a width of {canonical(_entrance:width)} meters </a>",
"nl": "<a href ='#{_entrance:id} '>Deze deur heeft een breedte van {canonical(_entrance:width)} meter </a>",
"de": "<a href ='#{_entrance:id} '>Diese Tür hat eine Durchgangsbreite von {canonical(_entrance:width)} Meter </a>",
"es": "<a href ='#{_entrance:id} '>Esta puerta tiene una ancho de {canonical(_entrance:width)} metros </a>"
},
"freeform": {
"key": "_entrance:width"
},
"mappings": [
{
"if": "_entrance:width=",
"then": {
"en": "This entrance has no width information"
}
}
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B