forked from MapComplete/MapComplete
Add QR-code to all popups, add direction indicator to popup and visual feedback, make reviews accessible to screenreaders (both to read them and to make them)
This commit is contained in:
parent
5567869bb4
commit
bfd818cb38
33 changed files with 415 additions and 98 deletions
|
@ -576,6 +576,7 @@ export class AddEditingElements extends DesugaringStep<LayerConfigJson> {
|
|||
"last_edit",
|
||||
"favourite_state",
|
||||
"all_tags",
|
||||
"qr_code",
|
||||
]
|
||||
private readonly _desugaring: DesugaringContext
|
||||
|
||||
|
@ -657,6 +658,13 @@ export class AddEditingElements extends DesugaringStep<LayerConfigJson> {
|
|||
})
|
||||
}
|
||||
|
||||
if (!usedSpecialFunctions.has("qr_code")) {
|
||||
json.tagRenderings.push({
|
||||
id: "qr_code",
|
||||
render: { "*": "{qr_code()}" },
|
||||
})
|
||||
}
|
||||
|
||||
if (!usedSpecialFunctions.has("all_tags")) {
|
||||
const trc: QuestionableTagRenderingConfigJson = {
|
||||
id: "all-tags",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue