keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.37k stars 1.74k forks source link

[Bug] Quick Trip Layer Formatting Crash Question #1117

Open johnathanchen opened 4 years ago

johnathanchen commented 4 years ago

Describe the bug Crashes when I try and load trip information that has been formatted.

To Reproduce Using Jupyter, everything works except for the Trip layer. Here's an example of my data node: `Hi, I keep getting the same problem too, and I spent the last 5 hours trying to figure out why it's crashing. Here's an example snippet:

{'type': 'FeatureCollection',
 'features': [{'type': 'Feature',
   'geometry': {'coordinates': [[-75.19078859999998,
      39.9527732,
      0,
      1449704491271],
     [-75.190796, 39.95274, 0, 1449704521285.0],
     [-75.190796, 39.95274, 0, 1449704491271.0],
     [-75.19078859999998, 39.9527732, 0, 1449704521285.0]],
    'type': 'LineString'},
   'properties': {'distance': 1, 'duration': 0}}]}

Is there anything wrong with the format structure above? This is driving me crazy, and I read the docs multiple times. Love Kepler though; appreciate all the work you've put into it.`

Expected behavior Trip layer to animate / not crash. I can't tell what I'm doing wrong since it looks like I'm following the docs correctly.

heshan0131 commented 4 years ago

Do you only have 1 feature in your feature collection?

Can you send us a screenshot of the js console error? (cmd+shift+I)

johnathanchen commented 4 years ago

I had over 60,000 points. The problem was solved when forcing into ints on Jupyter notebook, but loading the same thing into the kepler.gl web for screenshot purposes fails. The console doesn't show anything significant... Very strange how the dataframe in Jupyter works fine (when forced from a string to geojson object), but fails on browser.

Any ideas? Polygons also fail to load properly.

image

heshan0131 commented 4 years ago

Hi is this the same issue with trip layer domain not clean? https://github.com/keplergl/kepler.gl/pull/1131