qgis / qgis-js

QGIS core ported to WebAssembly to run it on the web platform

Home Page:https://qgis.github.io/qgis-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Layer opacity below 1 results in unwanted graying effect

amuedespacher opened this issue · comments

When setting the opacity of a map layer to some value below 1 (e.g. 0.5), the map layer is displayed in a gray-ish color.

Steps to reproduce:

Actual result:

  • Map layer is displayed with a grayish tint.

Expected result:

  • When reducing the layer opacity, the layer should maintain its original color quality, becoming more transparent without a gray overlay. The colors should remain true to their original hue, and only in terms of transparency.

Tested both with the sample project "village" and an own QGIS project.

Example:
Opacity = 1:
opacity-1

Opacity < 1:
opacity-below-1

This is fixed and deployed to GitHub Pages

If not urgent, I will have a look at the other new issues and then create a new npm version with them together..?