@carto/kepler.gl 0.0.26 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -763,6 +763,9 @@ class Layer {
763
763
  if (shouldGetScale) {
764
764
  const args = [this.config[scale], this.config[domain], this.config.visConfig[range]];
765
765
  const isFixed = fixed && this.config.visConfig[fixed];
766
+ // It's important to declare as const all the parameters that we are going to be use in the getEncodedChannelValue call
767
+ // otherwise, the oldLayerData parameter in formatLayerData method will be wrong (you can check the formatLayerData TileLayer method in Builder as example)
768
+ const fieldConfig = this.config[field];
766
769
 
767
770
  const scaleFunction =
768
771
  channelScaleType === CHANNEL_SCALES.color
@@ -773,7 +776,7 @@ class Layer {
773
776
  this.getEncodedChannelValue(
774
777
  scaleFunction,
775
778
  dataAccessor(dataContainer)(d),
776
- this.config[field],
779
+ fieldConfig,
777
780
  nullValue
778
781
  );
779
782
  } else if (typeof getAttributeValue === 'function') {