pbugnion/gmaps

Jupyter Gmaps HTML export interactive tick box

tigeryi1998 opened this issue · 1 comments

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?

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!