AW-6046 Angular improvement
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
import { Component, Input, Injectable,Directive,SimpleChanges } from '@angular/core';
|
||||
import { Location } from '@angular/common';
|
||||
import { Component, Directive, Injectable, Input } from '@angular/core';
|
||||
import { IQueryState, ItemTypeService, commonReducers } from '@farmmaps/common';
|
||||
import { Action, Store } from '@ngrx/store';
|
||||
import { Feature } from 'ol';
|
||||
import { Geometry} from 'ol/geom';
|
||||
import { Store,Action} from '@ngrx/store';
|
||||
import * as mapReducers from '../../reducers/map.reducer';
|
||||
import { commonReducers,ItemTypeService, IItem, Item } from '@farmmaps/common';
|
||||
import * as mapActions from '../../actions/map.actions';
|
||||
import { Observable, from } from 'rxjs';
|
||||
import { withLatestFrom } from 'rxjs/operators';
|
||||
import { Geometry } from 'ol/geom';
|
||||
import { tassign } from 'tassign';
|
||||
import { IQueryState } from '@farmmaps/common';
|
||||
import * as mapActions from '../../actions/map.actions';
|
||||
import * as mapReducers from '../../reducers/map.reducer';
|
||||
|
||||
|
||||
@Injectable()
|
||||
@@ -37,11 +34,11 @@ export abstract class AbstractFeatureListComponent {
|
||||
return new mapActions.DoQuery(newQuery)
|
||||
}
|
||||
|
||||
handleFeatureMouseEnter(feature) {
|
||||
handleFeatureMouseEnter(feature:Feature<Geometry>) {
|
||||
this.store.dispatch(new mapActions.SelectFeature(feature));
|
||||
}
|
||||
|
||||
handleFeatureMouseLeave(feature) {
|
||||
handleFeatureMouseLeave() {
|
||||
this.store.dispatch(new mapActions.SelectFeature(null));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user