Translation sync

This commit is contained in:
pietervdvn 2021-12-13 20:59:38 +01:00
parent e0019de9e2
commit 7e46e25943
5 changed files with 104 additions and 12 deletions

View file

@ -735,4 +735,4 @@
} }
} }
] ]
} }

View file

@ -34,7 +34,9 @@
"override": { "override": {
"+mapRendering": [ "+mapRendering": [
{ {
"location": ["point"], "location": [
"point"
],
"icon": { "icon": {
"render": "./assets/themes/grb_import/robot.svg" "render": "./assets/themes/grb_import/robot.svg"
}, },
@ -55,12 +57,14 @@
"then": "Zoom in more..." "then": "Zoom in more..."
}, },
{ {
"if": "_embedded_crab_addresses=", "if": "_embedded_crab_addresses=",
"then": "Loading..." "then": "Loading..."
},{ },
"if": "_embedded_crab_addresses=0", {
"then": "No CRAB addresses in view. Zoom in more to see them" "if": "_embedded_crab_addresses=0",
}] "then": "No CRAB addresses in view. Zoom in more to see them"
}
]
} }
] ]
} }

View file

@ -24,10 +24,90 @@
"clustering": false, "clustering": false,
"overpassTimeout": 180, "overpassTimeout": 180,
"layers": [ "layers": [
{
"id": "postal_code_boundary",
"name": {
"en": "postal codes"
},
"minzoom": 8,
"title": {
"render": {
"en": "Postal code {postal_code}"
}
},
"description": {},
"tagRenderings": [
{
"id": "postal_code",
"render": {
"en": "The postal code is {postal_code}"
}
}
],
"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
}
]
},
{ {
"id": "town_hall", "id": "town_hall",
"name": { "name": {
"en": "town halls and churches" "en": "town halls"
}, },
"minzoom": 12, "minzoom": 12,
"title": { "title": {
@ -35,7 +115,7 @@
"en": "Town hall {name}" "en": "Town hall {name}"
} }
}, },
"#calculatedTags": [ "calculatedTags": [
"_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_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=feat.get('_postal_code_properties')?.postal_code",
"_postal_code_center_distance=feat.distanceTo(feat.get('_postal_code_properties').id)" "_postal_code_center_distance=feat.distanceTo(feat.get('_postal_code_properties').id)"
@ -45,7 +125,10 @@
"presets": [], "presets": [],
"source": { "source": {
"osmTags": { "osmTags": {
"or": ["amenity=townhall","building=church"] "or": [
"amenity=townhall",
"building=church"
]
} }
}, },
"mapRendering": [ "mapRendering": [

View file

@ -326,7 +326,7 @@
} }
] ]
}, },
"named_streets" "named_streets"
], ],
"enableShareScreen": false, "enableShareScreen": false,
"enableMoreQuests": false "enableMoreQuests": false

View file

@ -835,6 +835,11 @@
"shortDescription": "Een kaart met alle kaarten die OpenStreetMap kent", "shortDescription": "Een kaart met alle kaarten die OpenStreetMap kent",
"title": "Een kaart met Kaarten" "title": "Een kaart met Kaarten"
}, },
"missing_streets": {
"description": "Dit thema voegt automatisch straatnamen toe aan gebouwen met huisnummer en overeenkomstig CRAB-adres.",
"shortDescription": "Voegt ontbrekende straten toe aan gebouwen met huisnumer adhv CRAB",
"title": "Fix ontbrekende straten"
},
"nature": { "nature": {
"description": "Op deze kaart vind je informatie voor natuurliefhebbers, zoals info over het natuurgebied waar je inzit, vogelkijkhutten, informatieborden, ...", "description": "Op deze kaart vind je informatie voor natuurliefhebbers, zoals info over het natuurgebied waar je inzit, vogelkijkhutten, informatieborden, ...",
"shortDescription": "Deze kaart bevat informatie voor natuurliefhebbers", "shortDescription": "Deze kaart bevat informatie voor natuurliefhebbers",