MapComplete/src/Models/GlobalFilter.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
612 B
TypeScript
Raw Normal View History

2023-03-24 19:21:15 +01:00
import { Translation, TypedTranslation } from "../UI/i18n/Translation"
import { Tag } from "../Logic/Tags/Tag"
2023-03-28 05:13:48 +02:00
import { TagsFilter } from "../Logic/Tags/TagsFilter"
2023-03-24 19:21:15 +01:00
export interface GlobalFilter {
2023-03-28 05:13:48 +02:00
osmTags: TagsFilter
/**
* If set, this object will be shown instead of hidden, even if the layer is not displayed
*/
2024-11-07 11:19:15 +01:00
forceShowOnMatch?: boolean
2023-03-28 05:13:48 +02:00
state: number | string | undefined
2023-03-24 19:21:15 +01:00
id: string
onNewPoint: {
safetyCheck: Translation
2023-04-26 18:04:42 +02:00
icon: string
2023-03-24 19:21:15 +01:00
confirmAddNew: TypedTranslation<{ preset: Translation }>
2025-05-03 23:48:35 +02:00
tags: Tag[]
cancel?: Translation
2023-03-24 19:21:15 +01:00
}
}