Add selecttemporalitemssuccess
This commit is contained in:
		@@ -5,6 +5,7 @@ import { IItemLayer } from '../models/item.layer';
 | 
			
		||||
import { IQueryState } from '@farmmaps/common';
 | 
			
		||||
import { IItem } from '@farmmaps/common';
 | 
			
		||||
import { Feature,Style } from 'ol';
 | 
			
		||||
import { IListItem } from 'dist/common/public-api';
 | 
			
		||||
 | 
			
		||||
export const SETSTATE = '[Map] SetState';
 | 
			
		||||
export const SETMAPSTATE = '[Map] MapState';
 | 
			
		||||
@@ -16,6 +17,7 @@ export const STARTSEARCHSUCCESS = '[Map] StartSearchSuccess';
 | 
			
		||||
export const SELECTFEATURE = '[Map] SelectFeature';
 | 
			
		||||
export const SELECTITEM = '[Map] SelectItem';
 | 
			
		||||
export const SELECTITEMSUCCESS = '[Map] SelectItemSuccess';
 | 
			
		||||
export const SELECTTEMPORALITEMSSUCCESS = '[Map] SelectTemporalItemsSuccess';
 | 
			
		||||
export const ADDFEATURESUCCESS = '[Map] AddFeatureSuccess';
 | 
			
		||||
export const UPDATEFEATURESUCCESS = '[Map] UpdateFeatureSuccess';
 | 
			
		||||
export const EXPANDSEARCH = '[Map] ExpandSearch';
 | 
			
		||||
@@ -97,6 +99,12 @@ export class SelectItemSuccess implements Action {
 | 
			
		||||
  constructor(public item: IItem) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class SelectTemporalItemsSuccess implements Action {
 | 
			
		||||
  readonly type = SELECTTEMPORALITEMSSUCCESS;
 | 
			
		||||
 | 
			
		||||
  constructor(public temporalItems: IListItem[]) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class AddFeatureSuccess implements Action {
 | 
			
		||||
  readonly type = ADDFEATURESUCCESS;
 | 
			
		||||
 | 
			
		||||
@@ -224,6 +232,7 @@ export type Actions = SetMapState
 | 
			
		||||
  | SelectFeature
 | 
			
		||||
  | SelectItem
 | 
			
		||||
  | SelectItemSuccess
 | 
			
		||||
  | SelectTemporalItemsSuccess
 | 
			
		||||
  | AddFeatureSuccess
 | 
			
		||||
  | UpdateFeatureSuccess
 | 
			
		||||
  | ExpandSearch
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user