mapcomplete/assets/themes/postal_codes/postal_codes.json

188 lines
4.5 KiB
JSON
Raw Normal View History

{
"id": "postal_codes",
"title": {
2022-01-27 01:33:28 +01:00
"en": "Postal codes",
2022-02-04 01:30:39 +01:00
"id": "Kode pos",
2022-04-09 17:35:21 +02:00
"hu": "Irányítószámok",
2022-04-13 18:42:40 +02:00
"de": "Postleitzahlen",
2022-04-28 00:35:08 +02:00
"ca": "Codis postals",
"es": "Códigos postales"
},
"shortDescription": {
2022-01-27 01:33:28 +01:00
"en": "Postal codes",
2022-02-04 01:30:39 +01:00
"id": "Kode pos",
2022-04-09 17:35:21 +02:00
"hu": "Irányítószámok",
2022-04-13 18:42:40 +02:00
"de": "Postleitzahlen",
2022-04-28 00:35:08 +02:00
"ca": "Codis postals",
"es": "Códigos postales"
},
"description": {
2022-01-27 01:33:28 +01:00
"en": "Postal codes",
2022-02-04 01:30:39 +01:00
"id": "Kode pos",
2022-04-09 17:35:21 +02:00
"hu": "Irányítószámok",
2022-04-13 18:42:40 +02:00
"de": "Postleitzahlen",
2022-04-28 00:35:08 +02:00
"ca": "Codis postals",
"es": "Códigos postales"
},
"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,
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-13 20:59:38 +01:00
{
"id": "postal_code_boundary",
"name": {
2022-01-27 01:33:28 +01:00
"en": "postal codes",
2022-02-04 01:30:39 +01:00
"id": "kode pos",
2022-04-09 17:35:21 +02:00
"hu": "irányítószámok",
2022-04-13 18:42:40 +02:00
"de": "Postleitzahlen",
2022-04-28 00:35:08 +02:00
"ca": "codis postals",
"es": "códigos postales"
2021-12-13 20:59:38 +01:00
},
"minzoom": 8,
"title": {
"render": {
2022-01-27 01:33:28 +01:00
"en": "Postal code {postal_code}",
2022-02-04 01:30:39 +01:00
"id": "Kode pos {postal_code}",
2022-04-09 17:35:21 +02:00
"hu": "Irányítószám: {postal_code}",
2022-04-28 00:35:08 +02:00
"de": "Postleitzahl {postal_code}",
"es": "Código postal {postal_code}"
2021-12-13 20:59:38 +01:00
}
},
"description": {},
"tagRenderings": [
{
"id": "postal_code",
"render": {
2022-01-27 01:33:28 +01:00
"en": "The postal code is {postal_code}",
2022-02-04 01:30:39 +01:00
"id": "Kode posnya adalah {postal_code}",
2022-04-13 18:42:40 +02:00
"hu": "Irányítószám: {postal_code}",
2022-04-28 00:35:08 +02:00
"de": "Die Postleitzahl lautet {postal_code}",
"es": "El código postal es {postal_code}"
2021-12-13 20:59:38 +01:00
}
}
],
"source": {
"osmTags": {
"or": [
"boundary=postal_code",
{
"and": [
"bounary=administrative",
"postal_code~*"
]
}
]
}
},
"mapRendering": [
{
"label": "<div class='text-xl bg-white rounded-full pl-2 pr-2 break-normal'>{postal_code}</div>",
"location": [
"point",
"centroid"
]
},
{
"color": {
"render": "#00f"
},
"width": {
"render": "4"
},
"fill": "no",
"dashArray": "8 8"
}
],
"isShown": {
"render": "yes",
"mappings": [
{
"if": "_country!=be",
"then": "no"
}
]
}
},
{
"id": "wrong_postal_code",
"source": {
"osmTags": {
"and": [
"boundary~*",
"addr:postcode~*"
]
}
},
"title": "Boundary relation with addr:postcode={addr:postcode}",
"mapRendering": [
{
"color": "#f00",
"width": 1
}
]
},
{
2021-12-07 17:46:57 +01:00
"id": "town_hall",
"name": {
2022-01-27 01:33:28 +01:00
"en": "town halls",
2022-02-04 01:30:39 +01:00
"id": "balai kota",
2022-04-09 17:35:21 +02:00
"hu": "polgármesteri hivatalok",
2022-04-13 18:42:40 +02:00
"de": "Rathäuser",
"ca": "ajuntaments"
},
"minzoom": 12,
"title": {
"render": {
2022-01-27 01:33:28 +01:00
"en": "Town hall {name}",
2022-02-04 01:30:39 +01:00
"id": "Balai kota {name}",
2022-04-09 17:35:21 +02:00
"hu": "{name} városháza",
"de": "Rathaus {name}"
}
},
2021-12-13 20:59:38 +01:00
"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": {
2021-12-13 20:59:38 +01:00
"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"
}
]
}
}
]
}