Kepler.gl: [Bug] Geojson failure when property contains JS object

Created on 7 Jun 2019  路  6Comments  路  Source: keplergl/kepler.gl

Describe the bug

When are geojson contains js object in the property, Kepler failed to render it in tooltip and data table

To Reproduce

  1. download geojson at https://transit.land/api/v1/operators/o-9q8y-sfmta.geojson?per_page=false
  2. upload to kepler
  3. fail to render immediately

Expected behavior
Parse js objects as a string

bug

Most helpful comment

This is fixed, please reopen if this is anything else needed
Special thanks to @matheusmonte

All 6 comments

@heshan0131 Can I work to solve this?

YES! my thinking is when read in geojson from files, stringify properties that contain object. You can dig into geojson-processor

Sure, I will work on this. Maybe on Saturday I send a PR solving this. Thanks

Hi @heshan0131 , I solve this. You're right, the problem occurs in geojson-processor , so I add a check type in properties and bug crash is avoid, but I'm not sure if this result is correct, you can see the render result in this image. May we need to work in visual layer too? Or this fix resolve this issue and we can open another one to improve visual feedback?

Screen Shot 2019-06-18 at 13 59 18

The code is in PR #564

This is fixed, please reopen if this is anything else needed
Special thanks to @matheusmonte

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seasmith picture seasmith  路  5Comments

davidywang picture davidywang  路  5Comments

ncthbrt picture ncthbrt  路  6Comments

ChunhongZhao picture ChunhongZhao  路  4Comments

coenvalk picture coenvalk  路  5Comments