Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter Gmaps HTML export interactive tick box #309

Open
tigeryi1998 opened this issue Jul 16, 2019 · 1 comment
Open

Jupyter Gmaps HTML export interactive tick box #309

tigeryi1998 opened this issue Jul 16, 2019 · 1 comment

Comments

@tigeryi1998
Copy link

tigeryi1998 commented Jul 16, 2019

Hi, thanks so much for sharing the Jupyter gmaps. I am trying to use it in my Jupyter Notebook .ipynb. I have several questions I want to ask since I am not very good at programming.

Is it possible to export my map with interactive tick box markers in HTML as well? I change some codes similar to "class OutletExplorer(object)" so I can tick and untick the checkbox that drop icons will appear and disappear based on groups.

I tried embed_minimal_html() function to export the map as .html but maybe it is static and the tick box no longer work in HTML. But the check box ticks fine in Jupyter Notebook.

I also tried to Embed Widgets and copy and paste it as .htm file but the tick box is still no working in the HTML. I wonder if it is possible to make the graph interactive in HTML as well.

My second question is about the marker_layer(), is it possible to change the drop icons with different colors depending on groups?

My next question is with regards to marker clustering. Is it possible to implement the marker clustering like the one on the Google Map JavaScript API? I have a lot of locations to place the drop icons. Is there a way to group them as a cluster? I don't know how to program Javascript so is there a way to use Python and Jupyter gmaps?

My last question, is it possible to add something like a search bar in gmaps based on the locations I have in Jupyter gmaps?

@pbugnion
Copy link
Owner

Hi, thanks so much for sharing the Jupyter gmaps.

Thanks for your kind words.

Is it possible to export my map with interactive tick box markers in HTML as well? I change some codes similar to "class OutletExplorer(object)" so I can tick and untick the checkbox that drop icons will appear and disappear based on groups.

I tried embed_minimal_html() function to export the map as .html but maybe it is static and the tick box no longer work in HTML. But the check box ticks fine in Jupyter Notebook.

You are saying that your interactions work in the notebook, but not exported to HTML? In general, anything that relies on processing in the Jupyter kernel (i.e. functions that you write in Python) won't work when exported.

I would suggest trying voila if you want to serve widgets with interactivity.

My next question is with regards to marker clustering. Is it possible to implement the marker clustering like the one on the Google Map JavaScript API?

This is discussed and tracked in issue #137 . PRs welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants