How to change the opacity of layers independently in kepler.gl in react?

Viewed 18

I want to change the opacity of layers in kepler.gl i want to make these hexagons more transparent

enter image description here

    if (data) {
      dispatch(
        addDataToMap({
          datasets: {
            info: {
              label: "COVID-19",
              id: "covid19"
            },
            data
          },
          options: {
            centerMap: true,
            readOnly: true,
            mapStyle:{
              opacity:0.5
            }
          },
          config: {
          }
        })
      );
    }
  }, [dispatch, data]);

and here is my code snippet to add layers in keplr.gl how i can achieve it ?

0 Answers
Related