Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] Solve issue #547 avoid crash application (#564)

Matheus Monte72257f32c035
diff --git a/src/processors/data-processor.js b/src/processors/data-processor.js
index 397ba9f65..bbd75f1ad 100644
--- a/src/processors/data-processor.js
+++ b/src/processors/data-processor.js
@@ -422,6 +422,14 @@ export function processGeojson(rawData) {
// getting all feature fields
const allData = normalizedGeojson.features.reduce((accu, f, i) => {
if (f.geometry) {
+ // check if properties contains object and stringfy this
+ if(typeof f.properties === 'object' && f.properties !== null){
+ Object.keys(f.properties).forEach(key => {
+ if(typeof f.properties[key] === 'object'){
+ f.properties[key] = JSON.stringify(f.properties[key]);
+ }
+ });
+ }
accu.push({
// add feature to _geojson field
_geojson: f,