Fix novalue
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-03-20 20:29:27 +01:00
parent 8907dca091
commit cbf805e1ff
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -54,7 +54,7 @@ export interface IGradientstop {
export interface IColorMap {
gradient: IGradientstop[],
noValue: IColorEntry,
noValue: IColor,
entries: IColorEntry[],
colormapType: string
}