diff --git a/projects/portal-core-ui/src/lib/service/wcsw/cs-csw.service.ts b/projects/portal-core-ui/src/lib/service/wcsw/cs-csw.service.ts index 7441719..f5b5545 100644 --- a/projects/portal-core-ui/src/lib/service/wcsw/cs-csw.service.ts +++ b/projects/portal-core-ui/src/lib/service/wcsw/cs-csw.service.ts @@ -63,6 +63,7 @@ export class CsCSWService { public setOpacity(layer, opacity: number) { for (const entity of layer.csLayers) { if (entity.rectangle) { + entity.rectangle.material = new ColorMaterialProperty(Color.fromAlpha(POLYGON_COLOUR, POLYGON_ALPHA*opacity)); this.opacity = opacity; } else if (entity.label) { entity.label.fillColor = Color.fromAlpha(FONT_COLOUR, opacity);