Open Doyley1 opened 4 months ago
Thanks for the bug report! This is an issue in a downstream plugin. I opened a fix there: https://github.com/onaci/folium-glify-layer/pull/3
Thanks for working on the fix :) any chance that documentation on this plugin can be added? Currently only mentioned within the ReadMe.md
No problem! About the documentation though, it’s not our plug-in, so you’d have to ask in the downstream repo.
When using GlifyLayer.add_to(map) an error appears:
The issue being that calling add_to(map) generates the function twice
This prevents the rest of the map loading correctly.
To Reproduce This can be reproduced using the GlifyLayer.ipynb by saving the resultant html to file and inspecting console
Environment:
Possible solutions A workaround I have been implementing is to directly change the HTML directly by setting
folium is maintained by volunteers. Can you help making a fix for this issue? Unsure of where the generation of the 2nd function glify_layer_xxxxxx.addTo(map_xxxxxx); is taking place, clearly not in init.py for GlifyLayer (Maybe constructor for GlifyLayer, but cannot be sure)