0

When I try to add data to the kepler.gl map, in the configuration file I set the initial longitude and latitude data, the first time when I do addDataToMap everything is fine, but the second time and more when I try to update the kepler map data, the latitude data and the longitudes from the configuration are not taken into account, and after executing the addDataToMap function, the longitude and latitude values ​​in mapState are zero.

Here is a code which i try to run.

dispatch(
 addDataToMap({
    datasets: {
      info: {
        label: "Items",
        id: "items_data",
      },
      data: data,
    },
    option: {
      centerMap: false,
      readOnly: false,
    },
    config: {
      mapState: {
        latitude: 40,
        longitude: 40,
        zoom: 5
      },
    },
  })
);

Screenshot of KeplerGl mapState

0 Answers0