From c44c771feb336485c3ed7af484c0fb421f5a447a Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 16 Sep 2020 15:02:42 +0200 Subject: [PATCH] Use indexKey if specified --- .../fm-map/components/aol/item-layers/item-layers.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bca7276..0357536 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 @@ -49,7 +49,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange } getColorFromGradient(item:IItem,layer: ILayer, feature): style.Style { - var value = feature.get(layer.name); + var value = layer.indexKey ? feature.get(layer.indexKey): feature.get(layer.name); var key = item.code + "_" + value; if(!this.styleCache[key]) { var gradient: IGradientstop[] = layer.renderer.colorMap.gradient;