Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] Object and array field types made numeric (#2127)
Igor Dykhta20fcb662a52b
diff --git a/src/constants/src/default-settings.ts b/src/constants/src/default-settings.tsindex 4e497b2bd..420b104bb 100644--- a/src/constants/src/default-settings.ts+++ b/src/constants/src/default-settings.ts@@ -647,22 +647,16 @@ export const FIELD_OPTS = {}},[ALL_FIELD_TYPES.object]: {- type: 'categorical',- scale: {- ...ordinalFieldScaleFunctions,- ...ordinalFieldAggrScaleFunctions- },+ type: 'numerical',+ scale: {},format: {legend: d => '...',tooltip: []}},[ALL_FIELD_TYPES.array]: {- type: 'categorical',- scale: {- ...ordinalFieldScaleFunctions,- ...ordinalFieldAggrScaleFunctions- },+ type: 'numerical',+ scale: {},format: {legend: d => '...',tooltip: []@@ -673,7 +667,9 @@ export const FIELD_OPTS = {export const CHANNEL_SCALE_SUPPORTED_FIELDS = Object.keys(CHANNEL_SCALES).reduce((accu, key) => ({...accu,- [key]: Object.keys(FIELD_OPTS).filter(ft => Object.keys(FIELD_OPTS[ft].scale[key]).length)+ [key]: Object.keys(FIELD_OPTS).filter(+ ft => FIELD_OPTS[ft].scale[key] && Object.keys(FIELD_OPTS[ft].scale[key]).length+ )}),{} as {[id: string]: string[]});