fix for statistics
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
2020-07-28 20:02:23 +02:00
parent f014dc9f93
commit 52871efb09
3 changed files with 8 additions and 6 deletions

View File

@@ -88,8 +88,8 @@ export class LegendComponent implements OnInit,AfterViewInit {
return this.histogramenabled && this.layer.renderer.band.histogram.entries && this.layer.renderer.band.histogram.entries.length > 0 && this.layer.renderer.colorMap.colormapType == "minmax";
}
bandContainsHistogram(): boolean {
return this.layer.renderer.band.histogram != null;
bandContainsStatistics(): boolean {
return this.layer.renderer.band.statistics != null;
}
}