Inspector tool with folium? #403
-
I am using colab for a workshop with some students. I am replicating a tutorial from the vanilla GEE website about Global Water Occurrence. When I add the map layer, I am finding that inspector only shows lat/long. Is it possible to include the variable as well? Code is below. Thanks. -Albert
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately, the answer is no. Unlike ipyleaflet, folium is a one-way street from Python to Javascript (see python-visualization/folium#1402 and python-visualization/folium#1388). Once the map is created and displayed, there is not much interactivity except zooming in/out and toggling layers on/off. You cannot even get the clicked coordinates programmatically, not to mention querying GEE data, adding/removing layers, etc. If it were possible, I would have implemented this basic inspector feature. If your students can't set up jupyter on their computer, here are two potential workarounds:
|
Beta Was this translation helpful? Give feedback.
Unfortunately, the answer is no. Unlike ipyleaflet, folium is a one-way street from Python to Javascript (see python-visualization/folium#1402 and python-visualization/folium#1388). Once the map is created and displayed, there is not much interactivity except zooming in/out and toggling layers on/off. You cannot even get the clicked coordinates programmatically, not to mention querying GEE data, adding/removing layers, etc. If it were possible, I would have implemented this basic inspector feature.
If your students can't set up jupyter on their computer, here are two potential workarounds: