Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] fix for custom color scales with tile layer (#2853)
Igor Dykhta59abc6a19f55
diff --git a/src/utils/src/data-scale-utils.ts b/src/utils/src/data-scale-utils.tsindex 8804d98d4..91c650f36 100644--- a/src/utils/src/data-scale-utils.ts+++ b/src/utils/src/data-scale-utils.ts@@ -327,8 +327,11 @@ export function initializeLayerColorMap(layer: Layer, visualChannel: VisualChannlayer});- const colorBreaks = getLegendOfScale({scale, scaleType, fieldType: field.type});-+ const colorBreaks = getLegendOfScale({+ scale: scale?.byZoom ? scale(0) : scale,+ scaleType,+ fieldType: field.type+ });return colorBreaksToColorMap(colorBreaks);}