forked from MapComplete/MapComplete
Braille tagrendering
This commit is contained in:
parent
5e6892a1f5
commit
62a835b876
4 changed files with 34670 additions and 21105 deletions
|
@ -18,6 +18,7 @@ function main() {
|
|||
)
|
||||
const mappings: MappingConfigJson[] = []
|
||||
const schoolmappings: MappingConfigJson[] = []
|
||||
const brailemappings: MappingConfigJson[] = []
|
||||
|
||||
const countryToLanguage: Record<string, string[]> = perCountry
|
||||
const officialLanguagesPerCountry = Utils.TransposeMap(countryToLanguage)
|
||||
|
@ -57,6 +58,16 @@ function main() {
|
|||
"*": [code],
|
||||
},
|
||||
})
|
||||
|
||||
brailemappings.push(<MappingConfigJson>{
|
||||
if: "tactile_writing:braille:" + code + "=yes",
|
||||
ifnot: "tactile_writing:braille:" + code + "=",
|
||||
searchTerms: {
|
||||
"*": [code],
|
||||
},
|
||||
then,
|
||||
priorityIf: prioritySearch,
|
||||
})
|
||||
})
|
||||
|
||||
const wikidataLayer = <LayerConfigJson>{
|
||||
|
@ -94,6 +105,13 @@ function main() {
|
|||
multiAnswer: true,
|
||||
mappings: schoolmappings,
|
||||
},
|
||||
{
|
||||
id: "tactile_writing-braille",
|
||||
// @ts-ignore
|
||||
description: "Enables to pick *multiple* 'tactile_writing:braille=<lng>' within the mappings",
|
||||
multiAnswer: true,
|
||||
mappings: brailemappings,
|
||||
}
|
||||
],
|
||||
}
|
||||
const dir = "./assets/layers/wikidata/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue