folium icon indicating copy to clipboard operation
folium copied to clipboard

Create markers with custom icons

Open baobobs opened this issue 11 years ago • 5 comments

The one thing barring me from using Folium is the lack of support for markers using custom icons, through the use of user-provided .png files. This functionality is offered with Leaflet - http://leafletjs.com/examples/custom-icons.html

According to the text, "Marker icons in Leaflet are defined by L.Icon objects, which are passed as an option when creating markers."

For me personally, the option of including a shadow icon, as offered by Leaflet, is unnecessary, but I don't want to speak on behalf of everyone who desires this functionality.

I don't think I have the coding chops to actually add this functionality on my own. I'm eager to learn, but for the time being, if someone's willing to take this on, it would be enormously appreciated.

baobobs avatar Nov 01 '15 09:11 baobobs

That is an important addition and, as part of the folium team, I am ashamed to point you to this hack I used to produce this map.

ocefpaf avatar Nov 01 '15 11:11 ocefpaf

See #230

BibMartin avatar Nov 02 '15 08:11 BibMartin

Excellent! Thank you both! I'm excited to try this one out.

baobobs avatar Nov 02 '15 17:11 baobobs

This looks solved, closing.

themiurgo avatar Nov 15 '15 09:11 themiurgo

Yep. We forgot to close it. Thanks @themiurgo!

ocefpaf avatar Nov 15 '15 09:11 ocefpaf