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

Does not create folium local image resources #4

Open
sss7526 opened this issue Jul 2, 2024 · 2 comments
Open

Does not create folium local image resources #4

sss7526 opened this issue Jul 2, 2024 · 2 comments

Comments

@sss7526
Copy link

sss7526 commented Jul 2, 2024

Fantastic package here, saved my life (metaphorically). But It does not download the default icon image used by leaflet.js. And the map just renders empty image frames for the icons.

However, I was able to specify a custom image icon path with image = folium.features.CustomIcon('path/to/local/image.png') and added that as an argument to folium.Marker(icon=image).add_to(my_map)

Hope this helps anyone who might have been as confounded I as I was.

@robintw
Copy link
Owner

robintw commented Jul 2, 2024

Ah, thanks for reporting that. I don't tend to use the default marker images in Leaflet - I usually use either custom images I supply myself, or simple circles/squares as markers.

I'll have a look and see if I can get the download of the images done as part of the automation.

@sss7526
Copy link
Author

sss7526 commented Jul 2, 2024

No prob. Thanks for this resource. For whatever reason, trying to specify a custom icon via folium.Marker(icon=folium.Icon(<any parameters here>).add_to(my_map) didn't work either. CustomIcon was the only thing that worked for me.

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