← 输入框|github.com|刷新
Skip to content

Create markers with custom icons #228

Closed

Description

@baobobs

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.

Activity

  1. ocefpaf commented on Nov 1, 2015

    @ocefpaf
    Member

    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.

  2. BibMartin commented on Nov 2, 2015

    @BibMartin
    Contributor

    See #230

  3. baobobs commented on Nov 2, 2015

    @baobobs
    Author

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

  4. added a commit that references this issue on Nov 12, 2015
  5. themiurgo commented on Nov 15, 2015

    @themiurgo
    Contributor

    This looks solved, closing.

  6. ocefpaf commented on Nov 15, 2015

    @ocefpaf
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions