mapcomplete/assets/themes/postal_codes/postal_codes.json

74 lines
1.7 KiB
JSON
Raw Normal View History

{
"id": "postal_codes",
"title": {
"en": "Postal codes"
},
"shortDescription": {
"en": "Postal codes"
},
"description": {
"en": "Postal codes"
},
"language": [
"en"
],
"maintainer": "",
2021-12-07 17:46:57 +01:00
"icon": "./assets/themes/postal_codes/townhall.svg",
"version": "0",
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"widenFactor": 0.05,
"socialImage": "",
2021-12-07 02:23:26 +01:00
"hideFromOverview": true,
2021-12-07 17:46:57 +01:00
"clustering": false,
"overpassTimeout": 180,
"layers": [
{
2021-12-07 17:46:57 +01:00
"id": "town_hall",
"name": {
"en": "town halls and churches"
},
"minzoom": 12,
"title": {
"render": {
2021-12-07 17:46:57 +01:00
"en": "Town hall {name}"
}
},
"#calculatedTags": [
2021-12-07 17:46:57 +01:00
"_postal_code_properties=(() => { const f = feat.overlapWith('postal_code_boundary'); if(f.length===0){return {};}; const p = f[0]?.feat?.properties; return {id:p.id, postal_code: p.postal_code, _closest_town_hall: p._closest_town_hall}; })()",
"_postal_code=feat.get('_postal_code_properties')?.postal_code",
"_postal_code_center_distance=feat.distanceTo(feat.get('_postal_code_properties').id)"
],
2021-12-09 13:16:40 +01:00
"description": {},
"tagRenderings": [],
"presets": [],
"source": {
"osmTags": {
"or": ["amenity=townhall","building=church"]
}
},
"mapRendering": [
2021-12-09 13:16:40 +01:00
{
"icon": "./assets/themes/postal_codes/townhall.svg",
"iconSize": {
"render": "40,40,center"
},
"location": [
"point",
"centroid"
]
}
],
"isShown": {
"render": "yes",
2021-12-09 13:16:40 +01:00
"mappings": [
{
"if": "_country!=be",
"then": "no"
}
]
}
}
]
}