export function getLayerVisualChannels()

in modules/manifold/src/utils/kepler-utils.js [216:232]


export function getLayerVisualChannels(layerType, colorByFeature) {
  // todo: derive default visual channels from layerType
  switch (layerType) {
    case 'heatmap':
      return {
        weightField: null,
        weightScale: 'linear',
      };
    case 'hexagonId':
      return {
        colorField: {
          name: colorByFeature.name,
        },
        colorScale: 'quantize',
      };
  }
}