From bb555eec7481bb47738109c5f76b4c619383b528 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 25 Jan 2021 18:28:26 +0100 Subject: [PATCH] Remove fill colors for selected items --- .../aol/item-vector-source/item-vector-source.component.ts | 5 ----- projects/common-map/src/fm-map/effects/map.effects.ts | 6 ------ 2 files changed, 11 deletions(-) diff --git a/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts b/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts index 3c4b512..fdb582e 100644 --- a/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts @@ -116,8 +116,6 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements if (!this.stylesCache[key]) { if (this.itemTypeService.itemTypes[key]) { let itemType = this.itemTypeService.itemTypes[key]; - let fillColor = color.asArray(itemType.iconColor); - fillColor[3] = this.selectedItem?0:0.5; this.stylesCache[key] = new style.Style({ image: itemType.icon ? new style.Icon({ anchor: [0.5, 1], @@ -128,9 +126,6 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements color: 'red', width: 1 }), - fill: new style.Fill({ - color: fillColor - }), geometry:(feature) => this.geometry(feature) }); } else { diff --git a/projects/common-map/src/fm-map/effects/map.effects.ts b/projects/common-map/src/fm-map/effects/map.effects.ts index 6d57b9a..f6d2194 100644 --- a/projects/common-map/src/fm-map/effects/map.effects.ts +++ b/projects/common-map/src/fm-map/effects/map.effects.ts @@ -64,9 +64,6 @@ export class MapEffects { stroke: new style.Stroke({ color: 'red', width: 1 - }), - fill: new style.Fill({ - color: 'rgba(0, 0, 255, 0.1)' }) }))); actions.push(new mapActions.SetStyle('selected',new style.Style({ @@ -78,9 +75,6 @@ export class MapEffects { stroke: new style.Stroke({ color: 'red', width: 3 - }), - fill: new style.Fill({ - color: 'rgba(0, 0, 255, 0.1)' }) })));