Add new dataset and config layer to map keeping old datasets and config layers
- Dominant language
- TypeScript
- Stars
- 12k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 66
Description
I am calling the addDataToMap as in the vis-academy example.
However when I call the function again when there is some user input the old data is lost, except when I remove the config version then the data is kept but the config mapState is lost.
For example if the config is this:
let mapConfig = self.getMapConfig();
mapConfig.config.visState.layers = (a layer array containing all the config visState layers for each dataset)
**delete mapConfig.version;**
self.props.dispatch(
addDataToMap({
datasets: dataset,
config: mapConfig,
options: { readOnly: false }
})
);
The map state is reset, and if the mapConfig.version is not removed the the previous datasets are lost.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.