Skip to content

Inspector tool with folium? #403

Answered by giswqs
albertlarson asked this question in Q&A
Discussion options

You must be logged in to vote

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:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@albertlarson
Comment options

Answer selected by giswqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants