From 9d56474197910ae874980d413d868ea89c4a5255 Mon Sep 17 00:00:00 2001 From: PhilippeL Date: Mon, 4 May 2020 15:57:10 -0400 Subject: [PATCH] fix(layer-list): fix baselayer with select all and opacity CSS --- .../layer/layer-item/layer-item.component.ts | 8 ++---- .../layer-list/layer-list.component.html | 28 ++++++++++--------- .../layer/layer-list/layer-list.component.ts | 8 ++++++ packages/geo/src/lib/map/shared/map.ts | 8 ++++-- 4 files changed, 32 insertions(+), 20 deletions(-) diff --git a/packages/geo/src/lib/layer/layer-item/layer-item.component.ts b/packages/geo/src/lib/layer/layer-item/layer-item.component.ts index 29a28fac9d..eb28de6066 100644 --- a/packages/geo/src/lib/layer/layer-item/layer-item.component.ts +++ b/packages/geo/src/lib/layer/layer-item/layer-item.component.ts @@ -58,17 +58,15 @@ export class LayerItemComponent implements OnInit, OnDestroy { } set selectAll(value: boolean) { this._selectAll = value; - if (value) { - if (!this.layer.baseLayer) { - this.layerCheck = true; - } + if (value === true) { + this.layerCheck = true; } else { this.layerCheck = false; } } private _selectAll = false; - public layerCheck = false; + public layerCheck; private resolution$$: Subscription; diff --git a/packages/geo/src/lib/layer/layer-list/layer-list.component.html b/packages/geo/src/lib/layer/layer-list/layer-list.component.html index c8ca50b745..4c433eeebf 100644 --- a/packages/geo/src/lib/layer/layer-list/layer-list.component.html +++ b/packages/geo/src/lib/layer/layer-list/layer-list.component.html @@ -129,19 +129,21 @@ - - +
+ + +