forked from MapComplete/MapComplete
Themes(cafe_pub, toilets): add toilet information to pubs; forward wheelchair accessibility information to 'toilet_at_amenity'
This commit is contained in:
parent
7a0eed35e3
commit
455b2c641c
9 changed files with 75 additions and 118 deletions
|
|
@ -186,6 +186,11 @@ export default class TagrenderingManipulationSpecialVisualisations {
|
|||
name: "labels",
|
||||
doc: "A `;`-separated list of either identifiers or label names. All tagRenderings matching this value will be shown in the accordion",
|
||||
},
|
||||
{
|
||||
name: "blacklist",
|
||||
required: false,
|
||||
doc: "A `;`-separated list of either identifiers or label names. Matching tagrenderings will _not_ be included, even if they are in `labels`"
|
||||
}
|
||||
],
|
||||
constr(
|
||||
state: SpecialVisualizationState,
|
||||
|
|
@ -194,8 +199,9 @@ export default class TagrenderingManipulationSpecialVisualisations {
|
|||
selectedElement: Feature,
|
||||
layer: LayerConfig
|
||||
): SvelteUIElement {
|
||||
const [header, labelsStr] = argument
|
||||
const [header, labelsStr, blacklistStr] = argument
|
||||
const labels = labelsStr.split(";").map((x) => x.trim())
|
||||
const blacklist = blacklistStr?.split(";")?.map(x => x.trim()) ?? []
|
||||
return new SvelteUIElement(GroupedView, {
|
||||
state,
|
||||
tags,
|
||||
|
|
@ -203,6 +209,7 @@ export default class TagrenderingManipulationSpecialVisualisations {
|
|||
layer,
|
||||
header,
|
||||
labels,
|
||||
blacklist
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue