Refactoring types
This commit is contained in:
		@@ -5,7 +5,9 @@ import { IItemLayer } from '../models/item.layer';
 | 
			
		||||
import { ILayervalue } from '../models/layer.value';
 | 
			
		||||
import { IQueryState } from '@farmmaps/common';
 | 
			
		||||
import { IItem } from '@farmmaps/common';
 | 
			
		||||
import { Feature,Style } from 'ol';
 | 
			
		||||
import { Feature } from 'ol';
 | 
			
		||||
import { Style } from 'ol/style';
 | 
			
		||||
import { Geometry } from 'ol/geom';
 | 
			
		||||
import { IPeriodState } from '../models/period.state';
 | 
			
		||||
 | 
			
		||||
export const SETSTATE = '[Map] SetState';
 | 
			
		||||
@@ -103,13 +105,13 @@ export class StartSearch implements Action {
 | 
			
		||||
export class StartSearchSuccess implements Action {
 | 
			
		||||
  readonly type = STARTSEARCHSUCCESS;
 | 
			
		||||
 | 
			
		||||
  constructor(public features: Array<Feature>, public query:IQueryState) { }
 | 
			
		||||
  constructor(public features: Array<Feature<Geometry>>, public query:IQueryState) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class SelectFeature implements Action {
 | 
			
		||||
  readonly type = SELECTFEATURE;
 | 
			
		||||
 | 
			
		||||
  constructor(public feature:Feature) { }
 | 
			
		||||
  constructor(public feature:Feature<Geometry>) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class SelectItem implements Action {
 | 
			
		||||
@@ -151,13 +153,13 @@ export class SelectTemporal implements Action {
 | 
			
		||||
export class AddFeatureSuccess implements Action {
 | 
			
		||||
  readonly type = ADDFEATURESUCCESS;
 | 
			
		||||
 | 
			
		||||
  constructor(public feature: Feature) { }
 | 
			
		||||
  constructor(public feature: Feature<Geometry>) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class UpdateFeatureSuccess implements Action {
 | 
			
		||||
  readonly type = UPDATEFEATURESUCCESS;
 | 
			
		||||
 | 
			
		||||
  constructor(public feature: Feature) { }
 | 
			
		||||
  constructor(public feature: Feature<Geometry>) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class ExpandSearch implements Action {
 | 
			
		||||
@@ -271,7 +273,7 @@ export class DoQuery implements Action {
 | 
			
		||||
export class SetStyle implements Action {
 | 
			
		||||
  readonly type = SETSTYLE;
 | 
			
		||||
 | 
			
		||||
  constructor(public itemType:string,public style: Style | (Feature)) { }
 | 
			
		||||
  constructor(public itemType:string,public style: Style | (Feature<Geometry>)) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class ShowLayerSwitcher implements Action {
 | 
			
		||||
@@ -287,7 +289,7 @@ export class SetReplaceUrl implements Action {
 | 
			
		||||
export class SetFeatures implements Action {
 | 
			
		||||
  readonly type = SETFEATURES;
 | 
			
		||||
 | 
			
		||||
  constructor(public features: Array<Feature>) { }
 | 
			
		||||
  constructor(public features: Array<Feature<Geometry>>) { }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class SetLayerValuesLocation implements Action {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user