Skip to content

Commit

Permalink
Merge pull request #121 from jia020/AUS-4045
Browse files Browse the repository at this point in the history
AUS-4045 Fixed issue of color opacity changing for CSW layers.
  • Loading branch information
vjf authored Nov 23, 2023
2 parents 76ea609 + c702bb7 commit 5379d52
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5379d52

Please sign in to comment.