import { Action } from '@ngrx/store'; export const TOGGLE_OPEN_VISUALIZATION_LEGEND = '[Map UI] Toggle visualization open'; export const TOGGLE_PIN_VISUALIZATION_LEGEND = '[Map UI] Toggle pin visualization Legend'; export const TOGGLE_VISUALIZATION_FILTER_SECTION = '[Map UI] Toggle filter section'; export const CLOSE_PIN_VISUALIZATION_LEGEND = '[Map UI] Close pinned legend'; export const CLOSE_VISUALIZATION_FILTER_SECTION= '[Map UI] Close filter section legend'; export class ToggleOpenVisualizationLegend implements Action { readonly type = TOGGLE_OPEN_VISUALIZATION_LEGEND; } export class TogglePinVisualizationLegend implements Action { readonly type = TOGGLE_PIN_VISUALIZATION_LEGEND; } export class ToggleVisualizationLegendFilterSection implements Action { readonly type = TOGGLE_VISUALIZATION_FILTER_SECTION; } export class CloseVisualizationLegend implements Action { readonly type = CLOSE_PIN_VISUALIZATION_LEGEND; } export class CloseVisualizationLegendFilterSection implements Action { readonly type = CLOSE_VISUALIZATION_FILTER_SECTION; } // action types export type VisualizationLegendAction = | ToggleOpenVisualizationLegend | TogglePinVisualizationLegend | CloseVisualizationLegend | ToggleVisualizationLegendFilterSection | CloseVisualizationLegendFilterSection;