From cbf805e1ffa0a657c47631f97b0b15f16d20036c Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Sat, 20 Mar 2021 20:29:27 +0100 Subject: [PATCH] Fix novalue --- .../fm-map/components/aol/item-layers/item-layers.component.ts | 2 +- projects/common-map/src/fm-map/models/color.map.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index c08ec5a..49265fd 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -76,7 +76,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange getColorForValue(layer: ILayer, value: number): IColor { var color: IColor = { alpha:0,red:0,green:0,blue:0}; if(layer.renderer.colorMap.entries.length>0) { - color=layer.renderer.colorMap.noValue.color; + color=layer.renderer.colorMap.noValue; } layer.renderer.colorMap.entries.forEach((entry) => { if(entry.value==value) { diff --git a/projects/common-map/src/fm-map/models/color.map.ts b/projects/common-map/src/fm-map/models/color.map.ts index 6896fbe..7df92a7 100644 --- a/projects/common-map/src/fm-map/models/color.map.ts +++ b/projects/common-map/src/fm-map/models/color.map.ts @@ -54,7 +54,7 @@ export interface IGradientstop { export interface IColorMap { gradient: IGradientstop[], - noValue: IColorEntry, + noValue: IColor, entries: IColorEntry[], colormapType: string }