in modules/manifold/src/utils/kepler-utils.js [182:208]
export function getLayerVisConfig(layerType, numDataPoints, segmentGroupId) {
let colors;
switch (layerType) {
case 'heatmap':
colors = HEATMAP_COLORS[segmentGroupId];
break;
case 'hexagonId':
colors = DIVERGING_COLORS;
break;
}
let opacity;
switch (layerType) {
case 'heatmap':
opacity = 0.8;
break;
case 'hexagonId':
opacity = 0.5;
break;
}
return {
opacity,
colorRange: {
colors,
},
radius: 10,
};
}