import { Action } from '@ngrx/store' ; import Point from 'ol/geom/Point' ; import VectorLayer from 'ol/layer/Vector' ; import VectorSource from 'ol/source/Vector' ; import { CursorMode } from '../../interfaces/cursor-mode' ; export const SET_MODE = '[Cursor] Set Mode' ; export const RESET_MODE = '[Cursor] Reset Mode' ; export const SET_VISIBLE = '[Cursor] Set Visible' ; export const SET_LAYER = '[Cursor] Set Layer' ; export class SetMode implements Action { readonly type = SET_MODE ; constructor ( public payload ) { } } export class ResetMode implements Action { readonly type = RESET_MODE ; } export class SetVisible implements Action { readonly type = SET_VISIBLE ; constructor ( public payload ) { } } export class SetLayer implements Action { readonly type = SET_LAYER ; constructor ( public payload ) { } } export type CursorActions = SetMode | ResetMode | SetVisible | SetLayer ;