Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] check for existance of elevation column (#1522)
Igor Dykhta9c1afa9ef525
diff --git a/src/layers/icon-layer/icon-layer.js b/src/layers/icon-layer/icon-layer.jsindex cef1707d9..8af9c44ae 100644--- a/src/layers/icon-layer/icon-layer.js+++ b/src/layers/icon-layer/icon-layer.js@@ -285,7 +285,7 @@ export default class IconLayer extends Layer {const parameters = {// icons will be flat on the map when the altitude column is not used- depthTest: this.config.columns.altitude.fieldIdx > -1+ depthTest: this.config.columns.altitude?.fieldIdx > -1};return !this.iconGeometrydiff --git a/src/layers/point-layer/point-layer.js b/src/layers/point-layer/point-layer.jsindex a30d9f1a7..01f5cf773 100644--- a/src/layers/point-layer/point-layer.js+++ b/src/layers/point-layer/point-layer.js@@ -281,7 +281,7 @@ export default class PointLayer extends Layer {...data,parameters: {// circles will be flat on the map when the altitude column is not used- depthTest: this.config.columns.altitude.fieldIdx > -1+ depthTest: this.config.columns.altitude?.fieldIdx > -1},lineWidthUnits: 'pixels',updateTriggers,