disaster-ninja-fe icon indicating copy to clipboard operation
disaster-ninja-fe copied to clipboard

Core changes - refactor map related atoms architecture

Open propakov opened this issue 2 years ago • 2 comments

We have atoms architecture implying that we can only have 1 map in the app. But now, we have another map on /bivariate-manager, and will have another one.

We need to refactor our existing architecture solution to be sure that we can have several independent maps. After refactoring we want to be sure that one map won't affect another.

General idea:

  • have a class/atom/etc that will unite particular currentMapAtom, layersRegistry, layerOrderManager and other related entities like mountedLayersAtom, hiddenLayersAtom and etc.
  • all atoms that depends on currentMapAtom should depend on this new unit, as now we gonna work with particular map.

propakov avatar Aug 24 '22 13:08 propakov