0

I want to disable the remove data set and remove layers buttons in the kepler.gl map

enter image description here enter image description here

and here is my code

React.useEffect(() => {
    if (data) {
      dispatch(
        addDataToMap({
          datasets: {
            info: {
              label: "happiness index",
              id: "happiness index"
            },
            data
          },
          options: {
            centerMap: true,
            readOnly: false,
            mapStyle:{
              opacity:0.5
            }
          },
          config: {
          }
        })
      );
    }
  }, [dispatch, data]);
  return (
    <KeplerGl
      id="covid"
      mapboxApiAccessToken={process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}
      width={window.innerWidth}
      height={window.innerHeight}
    />
  );

How can I do it

0 Answers0