AW-2924 Cache codelists
This commit is contained in:
		@@ -5,7 +5,7 @@ import { IItemLayer } from '../models/item.layer';
 | 
			
		||||
import { ILayervalue } from '../models/layer.value';
 | 
			
		||||
import { IQueryState } from '@farmmaps/common';
 | 
			
		||||
import { IItem } from '@farmmaps/common';
 | 
			
		||||
import { Feature } from 'ol';
 | 
			
		||||
import { Feature, Observable } from 'ol';
 | 
			
		||||
import { Style } from 'ol/style';
 | 
			
		||||
import { Geometry } from 'ol/geom';
 | 
			
		||||
import { IPeriodState } from '../models/period.state';
 | 
			
		||||
@@ -56,7 +56,7 @@ export const GETLAYERVALUE = '[Map] GetLayerValue'
 | 
			
		||||
export const GETLAYERVALUESUCCESS = '[Map] GetLayerValueSuccess'
 | 
			
		||||
export const TOGGLESHOWDATALAYERSLIDE = '[Map] ToggleShowDataLayerSlide'
 | 
			
		||||
export const SETVIEWSTATE = '[Map] SetViewState'
 | 
			
		||||
 | 
			
		||||
export const SETCODELIST = '[Map] SetCodeList'
 | 
			
		||||
 | 
			
		||||
export class Clear implements Action {
 | 
			
		||||
  readonly type = CLEAR;
 | 
			
		||||
@@ -329,6 +329,12 @@ export class SetViewState implements Action {
 | 
			
		||||
  constructor(public enabled:boolean) {}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class SetCodeList implements Action {
 | 
			
		||||
  readonly type = SETCODELIST;
 | 
			
		||||
 | 
			
		||||
  constructor(public itemType:string, public values: IItem[]) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type Actions = SetMapState
 | 
			
		||||
  | Init
 | 
			
		||||
  | Clear
 | 
			
		||||
@@ -374,5 +380,6 @@ export type Actions = SetMapState
 | 
			
		||||
  | GetLayerValue
 | 
			
		||||
  | SetPeriod
 | 
			
		||||
  | ToggleShowDataLayerSlide
 | 
			
		||||
  | SetViewState;
 | 
			
		||||
  | SetViewState
 | 
			
		||||
  | SetCodeList;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user