mapcomplete/Models/FilteredLayer.ts

14 lines
451 B
TypeScript
Raw Normal View History

2021-07-27 19:39:57 +02:00
import {UIEventSource} from "../Logic/UIEventSource";
import LayerConfig from "./ThemeConfig/LayerConfig";
2022-01-08 04:22:50 +01:00
import {TagsFilter} from "../Logic/Tags/TagsFilter";
export interface FilterState {
2022-01-26 21:40:38 +01:00
currentFilter: TagsFilter,
state: string | number
2022-01-08 04:22:50 +01:00
}
2021-07-27 19:39:57 +02:00
export default interface FilteredLayer {
readonly isDisplayed: UIEventSource<boolean>;
2022-01-08 04:22:50 +01:00
readonly appliedFilters: UIEventSource<Map<string, FilterState>>;
2021-07-27 19:39:57 +02:00
readonly layerDef: LayerConfig;
}