You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by Bhuvaneswari Gadipudi <bh...@gmail.com> on 2019/04/10 01:47:01 UTC

Mapbox visualization doesn't plot lat lngs

Hi,

I'm running Superset version - 0.28.1 with Python - 2.7.15.

I've latitude and longitude columns in druid database (sample data below)
and trying to plot it on Mapbox visualization. Mapbox doesn't seem to load
all the points and in my case it plots one point (Lat/Lng) only (picture
below). When I filter and try to plot a specific point (Lat/Lng) it throws
below error. Did anyone face similar issue? Can someone suggest a
workaround to load all points into Mapbox?
[image: image.png]

*Sample Data: *{"time": "2019-04-07T19:00:14.000Z","latitude":
42.584301,"longitude": 12.645698,"networkProvider": "Wind
IT","radioAccessTechnology": "LTE","bandType": "LowBand","bandInfo":
20,"numOfObservations": 1}

*Error:*
value@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:12328
e@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:20118
kt@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:23570
e@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:30118
value@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:31578
e@
http://localhost:7120/static/assets/dist/mapbox.500501f19aa1c7366167.chunk.js:1:60003
Xi@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1381937
Ro@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1401254
No@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1401600
ha@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1406268
da@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1405922
Do@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1404434
enqueueSetState@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1373460
setState@
http://localhost:7120/static/assets/dist/explore.d3beaf73a661104a3627.entry.js:2:779059
onStateChange@
http://localhost:7120/static/assets/dist/explore.d3beaf73a661104a3627.entry.js:2:443843
[native code]
y@
http://localhost:7120/static/assets/dist/explore.d3beaf73a661104a3627.entry.js:2:272694
promiseReactionJob@[native code]
Also tried plotting points on Deck.gl screen grid visualization and it
loads all the points, however it shows weight as grids (square boxes)
instead of showing the weight info on the point.
[image: image.png]

Thanks for the help!!

Mapbox visualization doesn't plot lat lngs

Posted by Bhuvaneswari Gadipudi <bh...@gmail.com>.
Hi,

I'm running Superset version - 0.28.1 with Python - 2.7.15.

I've latitude and longitude columns in druid database (sample data below)
and trying to plot it on Mapbox visualization. Mapbox doesn't seem to load
all the points and in my case it plots one point (Lat/Lng) only (picture
below). When I filter and try to plot a specific point (Lat/Lng) it throws
below error. Did anyone face similar issue? Can someone suggest a
workaround to load all points into Mapbox?
[image: image.png]

*Sample Data: *{"time": "2019-04-07T19:00:14.000Z","latitude":
42.584301,"longitude": 12.645698,"networkProvider": "Wind
IT","radioAccessTechnology": "LTE","bandType": "LowBand","bandInfo":
20,"numOfObservations": 1}

*Error:*
value@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:12328
e@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:20118
kt@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:23570
e@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:30118
value@
http://localhost:7120/static/assets/dist/vendors-deckgl/layers/arc-deckgl/layers/geojson-deckgl/layers/grid-deckgl/layers/hex-deckgl/layers/p-39b91eb9.81565bc93ff56be4e334.chunk.js:2:31578
e@
http://localhost:7120/static/assets/dist/mapbox.500501f19aa1c7366167.chunk.js:1:60003
Xi@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1381937
Ro@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1401254
No@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1401600
ha@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1406268
da@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1405922
Do@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1404434
enqueueSetState@
http://localhost:7120/static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1373460
setState@
http://localhost:7120/static/assets/dist/explore.d3beaf73a661104a3627.entry.js:2:779059
onStateChange@
http://localhost:7120/static/assets/dist/explore.d3beaf73a661104a3627.entry.js:2:443843
[native code]
y@
http://localhost:7120/static/assets/dist/explore.d3beaf73a661104a3627.entry.js:2:272694
promiseReactionJob@[native code]
Also tried plotting points on Deck.gl screen grid visualization and it
loads all the points, however it shows weight as grids (square boxes)
instead of showing the weight info on the point.
[image: image.png]

Thanks for the help!!