From 54b8a3bf24fe4ea0a702f66b1f2b067ea8fb82f3 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 18 Aug 2021 14:34:45 +0200 Subject: [PATCH] AW-1855 --- .../fm-map/components/aol/layer-list/layer-list.component.html | 2 +- .../common-map/src/fm-map/components/legend/legend.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.html b/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.html index 0d3f478..d39b4d4 100644 --- a/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.html +++ b/projects/common-map/src/fm-map/components/aol/layer-list/layer-list.component.html @@ -17,7 +17,7 @@
- +
diff --git a/projects/common-map/src/fm-map/components/legend/legend.component.ts b/projects/common-map/src/fm-map/components/legend/legend.component.ts index 234ff6a..3c3b0f1 100644 --- a/projects/common-map/src/fm-map/components/legend/legend.component.ts +++ b/projects/common-map/src/fm-map/components/legend/legend.component.ts @@ -89,7 +89,7 @@ export class LegendComponent implements OnInit,AfterViewInit { } showHistogram(): boolean { - return this.histogramenabled && this.layer.renderer.band.histogram.entries && this.layer.renderer.band.histogram.entries.length > 0 && this.layer.renderer.colorMap.colormapType == "minmax"; + return this.histogramenabled && this.layer.renderer.band.histogram.entries && this.layer.renderer.band.histogram.entries.length > 0 && this.layer.renderer.band.histogram.entries.length == this.layer.renderer.colorMap.entries.length; } bandContainsStatistics(): boolean {