@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.
- package/dist/components/common/field-selector.js +3 -1
- package/dist/components/common/item-selector/item-selector.js +10 -3
- package/dist/components/side-panel/layer-panel/layer-configurator.js +5 -3
- package/dist/components/side-panel/layer-panel/vis-config-by-field-selector.js +6 -4
- package/dist/constants/default-settings.js +1 -1
- package/dist/constants/index.js +7 -1
- package/dist/layers/base-layer.js +6 -3
- package/package.json +8 -8
- package/src/components/common/field-selector.js +2 -0
- package/src/components/common/item-selector/item-selector.d.ts +1 -0
- package/src/components/common/item-selector/item-selector.js +8 -2
- package/src/components/side-panel/layer-panel/layer-configurator.js +2 -1
- package/src/components/side-panel/layer-panel/vis-config-by-field-selector.js +4 -2
- package/src/constants/index.js +1 -0
- package/src/layers/base-layer.js +4 -1
- package/umd/keplergl.min.js +22 -22
package/src/layers/base-layer.js
CHANGED
|
@@ -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
|
-
|
|
779
|
+
fieldConfig,
|
|
777
780
|
nullValue
|
|
778
781
|
);
|
|
779
782
|
} else if (typeof getAttributeValue === 'function') {
|