gee-community/geemap

pydeck widgets not show up

benerain opened this issue · 2 comments

Environment Information

Mac M1 chip

followed GEE tutorial #37 How to use Earth Engine with pydeck for 3D terrain visualization

view_state = pdk.ViewState(
    latitude=36.15, longitude=-111.96, zoom=10.5, bearing=-66.16, pitch=60
)

r = pdk.Deck(layers=[ee_layer], initial_view_state=view_state)

r.show()

Description

I already followed your instruction to create a new conda environment and install the needed package but still get this problem

截屏2023-01-11 上午10 45 49

the detail in the red box:
Failed to create view for 'JupyterTransportView' from module '@deck.gl/jupyter-widget' with model 'JupyterTransportModel' from module '@deck.gl/jupyter-widget'
TypeError: Cannot read properties of undefined (reading 'length')
at n.updateTooltip (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:766603)
at n.initialize (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:765694)
at n.value (http://localhost:8888/nbextensions/pydeck/index.js?v=20230111103133:18:454591)
at new t.View (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:248055)
at new C (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:755696)
at new k (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:763285)
at new O (http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:764935)
at n. (http://localhost:8888/nbextensions/pydeck/index.js?v=20230111103133:18:454155)
at new n (http://localhost:8888/nbextensions/pydeck/index.js?v=20230111103133:18:454303)
at http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230111103133:2:742192

and the detail in the chrome console said:
截屏2023-01-11 上午10 48 18

the bug has stuck me for several hours. do you have any ideas of how to solve this?

Best Regards

This is a pydeck issue rather than geemap. Try running some examples from https://pydeck.gl/. If it does not work, then it is a pydeck problem.

Also, the pydeck earth engine package no longer works. See UnfoldedInc/earthengine-layers#133. It is not something that can be resolved by geemap. Don't waste your time trying this.

ok, thank you for the reply