@carto/kepler.gl 0.0.73 → 0.0.74
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/CHANGELOG.md +6 -0
- package/dist/components/side-panel/layer-panel/layer-configurator.js +11 -8
- package/dist/constants/default-settings.js +1 -1
- package/dist/layers/base-layer.js +4 -2
- package/package.json +1 -1
- package/src/components/side-panel/layer-panel/layer-configurator.js +11 -9
- package/src/layers/base-layer.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@carto/kepler.gl",
|
|
3
3
|
"author": "CARTO",
|
|
4
4
|
"homepage": "https://github.com/CartoDB/carto-kepler#readme",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.74",
|
|
6
6
|
"description": "kepler.gl is a webgl based application to visualize large scale location data in the browser",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -1170,15 +1170,17 @@ export function LayerColorRangeSelectorFactory(ColorSelector) {
|
|
|
1170
1170
|
: colorRange;
|
|
1171
1171
|
// Ensure that scale changes from identity to ordinal
|
|
1172
1172
|
// Validate scale to ensure that it changes from `identity` to the correct one.
|
|
1173
|
-
layer.
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1173
|
+
if (layer.isColoredByColorColumn(property)) {
|
|
1174
|
+
layer.updateLayerConfig({
|
|
1175
|
+
[field]: {
|
|
1176
|
+
...layer.config[field],
|
|
1177
|
+
colorColumn: null,
|
|
1178
|
+
colorColumnIdx: null
|
|
1179
|
+
},
|
|
1180
|
+
[scale]: SCALE_TYPES.ordinal
|
|
1181
|
+
});
|
|
1182
|
+
layer.validateScale(channel);
|
|
1183
|
+
}
|
|
1182
1184
|
// ---------------------------------------
|
|
1183
1185
|
onChange({[property]: colorRangeUpdated});
|
|
1184
1186
|
}
|
package/src/layers/base-layer.js
CHANGED
|
@@ -1533,7 +1533,7 @@ class Layer {
|
|
|
1533
1533
|
getHexColumn(range) {
|
|
1534
1534
|
const field = Object.values(this.visualChannels)?.find(value => value.range === range)?.field;
|
|
1535
1535
|
if (field) {
|
|
1536
|
-
return this.config[field]
|
|
1536
|
+
return this.config[field]?.colorColumn;
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
|