rodekruis / IBF-system

Tools required to trigger, manage and execute the Red Cross Early Action Protocols for natural disasters.
https://ibf.510.global
Apache License 2.0
12 stars 15 forks source link

[BUG] Rainfall forecast layer colour not consistent when 2+ layers active #1544

Open tenda1-wbm opened 1 month ago

tenda1-wbm commented 1 month ago

Who notified us about the bug?

Tendai Mbwanda

Describe the bug

The colour of the "Rainfall forecast" layer is altered by (de)activating the "Cropland" layer, except outside the spatial extent of the other layer. Or probably some map algebra is done and what is displayed is the mix of the two colours. As a result, when "Rainfall forecast" and "Cropland" are both activated, you will predominantly see the colour of "Cropland" unless the two layers do not overlap. It then becomes difficult to determine the amount of rainfall that is forecast, even though the square shows the extent of the forecast.

To Reproduce

Steps to reproduce the behavior:

  1. Ensure you are looking at the Drought prediction view of the platform during a trigger.
  2. Drag the map up until you see "MASAKA", "Kaliziso" and "Rakai" in the viewport.
  3. Activate the "Rainfall forecast" layer.
  4. Activate the "Cropland" layer.
  5. Observe the colour changes in the orange square.

Expected behavior

I expected the colour of the "Rainfall forecast" square to persist even after activating "Cropland", and that of "Cropland" to be retained as well. Alternatively, I would've expected to still be able to determine the correct amount of rainfall forecast after activating the other layer. See screenshots 3 and 4 for comparison with another layer that is not "Cropland".

Screenshots

Only Rainfall forecast activated image

Only Cropland activated image

Rainfall forecast and Cropland activated image

Rainfall forecast and Population activated image

Desktop (please complete the following information):

tenda1-wbm commented 1 month ago

The bug can also be seen here with 3 layers active after following the 5 steps laid out in the issue and then activating a third layer. In this case "Population".

image