mapcomplete/Models/FilteredLayer.ts
2022-01-26 21:40:38 +01:00

14 lines
No EOL
451 B
TypeScript

import {UIEventSource} from "../Logic/UIEventSource";
import LayerConfig from "./ThemeConfig/LayerConfig";
import {TagsFilter} from "../Logic/Tags/TagsFilter";
export interface FilterState {
currentFilter: TagsFilter,
state: string | number
}
export default interface FilteredLayer {
readonly isDisplayed: UIEventSource<boolean>;
readonly appliedFilters: UIEventSource<Map<string, FilterState>>;
readonly layerDef: LayerConfig;
}