AW-2388
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter Bastiani 2021-05-26 16:11:21 +02:00
parent 880eb26a99
commit 00ae86ecf2
2 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,7 @@
<div *ngIf="showHistogram()"> <div *ngIf="showHistogram()">
<span class="bar" [style.background-color]="getHex(entry.color)" [style.width]="getPart(layer.renderer, i)"> <span class="bar" [style.background-color]="getHex(entry.color)" [style.width]="getPart(layer.renderer, i)">
</span> </span>
<span *ngIf="getPercentage(layer.renderer,i) as percentage" class="bar-label">{{percentage | number:'1.0-2'}}</span> <span *ngIf="getPercentage(layer.renderer,i) as percentage" class="bar-label">{{percentage | number:'1.0-2'}} {{legendunit}}</span>
</div> </div>
</td> </td>
</tr> </tr>

View File

@ -95,6 +95,4 @@ export class LegendComponent implements OnInit,AfterViewInit {
bandContainsStatistics(): boolean { bandContainsStatistics(): boolean {
return this.layer.renderer.band.statistics != null; return this.layer.renderer.band.statistics != null;
} }
} }