deck.gl
deck.gl copied to clipboard
colorScaleType `linear` doesn't work properly on HexagonLayer
Description
I figure it out thats due to linearScale function in this case will return NaN. https://github.com/visgl/deck.gl/blob/master/modules/aggregation-layers/src/utils/scale-utils.js#L146
// Linear scale maps continuous domain to continuous range
export function linearScale(domain, range, value) {
return ((value - domain[0]) / (domain[1] - domain[0])) * (range[1] - range[0]) + range[0];
}
linear
should only be used in height, the aggregation layer only support quantile
or quantize
for colorScaleType