GlifyLayer not defined when using .add_to(map) #1982
Labels
not our bug
The bug cannot be fixed in folium but needs to be solved somewhere else
work in progress
Work is in progress on a PR, check the PR to see its status
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)
The text was updated successfully, but these errors were encountered: