keplergl / kepler.gl

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

[Bug] error while adding hexbin or grid layer in react keplerGL app #1597

Open Jdave860 opened 3 years ago

Jdave860 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

I am trying to visualized the data in keplergl using React app and wanted to add Hexbin layer but giving me errors.

Errors:

  1. An error in deck.gl: Cannot read property '8' of undefined in nb74usl
  2. An error in deck.gl: Cannot read property 'sortedBins' of undefined in nb74usl-hexagon-cell

To Reproduce Steps to reproduce the behavior:

  1. Go to browse files
  2. Click on add layer
  3. Scroll down to basic and select Hexbin layer or Grid layer
  4. See error An error in deck.gl: Cannot read property '8' of undefined in nb74usl An error in deck.gl: Cannot read property 'sortedBins' of undefined in nb74usl-hexagon-cell

Expected behavior A clear and concise description of what you expected to happen. Should visualize with hexbin or Grid layer

Screenshots If applicable, add screenshots to help explain your problem. kKqk5

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

samnichols-cpc commented 3 years ago

I am getting the same errors from the same usage and noticed that it has no problem when grouping by "Point Count" in the "Colour Based On" field but as soon as I change it to one of my datasets fields... the errors came up.

The problem doesn't happen on the kepler.gl/demo website when using the same data and fields.

Hope this helps

heshan0131 commented 2 years ago

https://github.com/keplergl/kepler.gl/issues/1601