src/reducers/vis-state-updaters.js
function computeSplitMapLayers(layers) {
  const mapLayers = layers.reduce(
    (newLayers, currentLayer) => ({
      ...newLayers,
      [currentLayer.id]: generateLayerMetaForSplitViews(currentLayer)
    }),
    {}
  );
  return [
    {
      layers: mapLayers
    },
    {
      layers: mapLayers
    }
  ];
}
function computeSplitMapLayers(layers) {
  const mapLayers = layers.reduce(
    (newLayers, currentLayer) => ({
      ...newLayers,
      [currentLayer.id]: generateLayerMetaForSplitViews(currentLayer)
    }),
    {}
  );
  return [
    {
      layers: mapLayers
    },
    {
      layers: mapLayers
    }
  ];
}
function computeSplitMapLayers ( layers ) { const mapLayers = layers . reduce ( ( newLayers , currentLayer ) => ( { ... newLayers , [ currentLayer . id ] : generateLayerMetaForSplitViews ( currentLayer ) } ) , { } ) ; return [ { layers : mapLayers } , { layers : mapLayers } ] ; }
This method will compute the default maps custom list
based on the current layers status
@param {Array<Object>} layers
@returns {Array<Object>} split map settings
This method will compute the default maps custom list based on the current layers status