-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Adding multiple Custom Icon in Folium #744
Comments
I got this solved, it needs icon to be initialised everytime you add a marker.
|
When icon have to be initialised everytime we got huge file. It's a bug. |
I guess you're right @ninabel, do you want to look into this and open a PR? I'm thinking now we should let an element have multiple parents in a way, but render it only once. Or something. |
Was this ever addressed in another issue? Because I notice the bug mentioned above by @ninabel still persists. |
The bug is still persisting. It has not been solved yet. @hbarovertwo |
I managed to solved this problem by initiliasing the custom icon within a for loop.
|
Is this issue fix or is there a good work-around that does not load redundant copies of the same image, thus slowing the server? |
I am creating a Custom Icon in folium, and displaying it on a map, but when i try to add another coordinate with the same Icon, it fails.
Now adding another location with the same icon
[The map_osm points to new location with its default icon, and the previous pin is removed.]
Expected Output should have been two map pins with the same icon.
folium.__version__
= '0.5.0'The text was updated successfully, but these errors were encountered: