AW-7050 Remove FeatureListFeatureObservationComponent
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,10 +0,0 @@
|
||||
<div *ngIf="feature;let feature">
|
||||
<div class="row m-0">
|
||||
<div class="col-3 m-0 p-2 thumbnail">
|
||||
<img [src]="getSource(feature)" style="width: 34px">
|
||||
</div>
|
||||
<div class="col p-2" style="margin: auto;">
|
||||
<h1 class="card-title" title="{{feature.get('name')}}">{{feature.get('name')}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,22 +0,0 @@
|
||||
.card-title {
|
||||
font-size: 1rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.card-text {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.col {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
width: 4em;
|
||||
height: 4em;
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import { Component, Injectable } from '@angular/core';
|
||||
import { AppConfig, commonReducers, ItemTypeService } from '@farmmaps/common';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Feature } from 'ol';
|
||||
import { Geometry } from 'ol/geom';
|
||||
import * as mapReducers from '../../reducers/map.reducer';
|
||||
import { AbstractFeatureListFeatureComponent } from '../feature-list-feature/feature-list-feature.component';
|
||||
import { ForItemType } from '../for-item/for-itemtype.decorator';
|
||||
|
||||
@ForItemType("vnd.farmmaps.itemtype.observation")
|
||||
@Injectable()
|
||||
@Component({
|
||||
selector: 'fm-map-feature-list-feature-observation',
|
||||
templateUrl: './feature-list-feature-observation.component.html',
|
||||
styleUrls: ['./feature-list-feature-observation.component.scss']
|
||||
})
|
||||
export class FeatureListFeatureObservationComponent extends AbstractFeatureListFeatureComponent {
|
||||
|
||||
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService,config:AppConfig) {
|
||||
super(store, itemTypeService,config);
|
||||
}
|
||||
|
||||
getSource(feature: Feature<Geometry>): string {
|
||||
let source = "/images/decease.png";
|
||||
var type = feature.get('type');
|
||||
source = '/images/' + type + '.png';
|
||||
return source;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user