Skip to content

Missing styling documentation #649

Closed

Description

@deeplook
  1. Folium rocks! Thx so much for working on it!

  2. I'm exploring it now, and trying to style some GeoJSON was much harder than expected, largely because I couldn't find any documentation on expected property names (for folium, I know there aren't for GeoJSON). After a while I've sniffed into the code, and saw that e.g. fillColor should work. But then strokeColor doesn't (color does). I'm not sure this is very consistent and it's totally unclear to me which convention or standard is expected here?

  3. I found I had to ask explicitly for styling the data using folium.GeoJson(... styl_func=my_func).style_data() or the style_function parameter would not be called, which was also a surprise and seemed not to be documented anywhere.

  4. Foliumstill rocks!

Activity

  1. added
    documentation
    on Aug 8, 2017
  2. ocefpaf commented on Aug 8, 2017

    @ocefpaf
    Member

    We are lacking behind the docs for a long while now. But folium is maintained by volunteers on their spare time, so I don't expect that to be solved anytime soon. (PRs welcomed 😉)

  3. deeplook commented on Aug 9, 2017

    @deeplook
    ContributorAuthor

    Cool. Is there any chat room to ask people, then, like IRC or slack?

  4. ocefpaf commented on Aug 9, 2017

    @ocefpaf
    Member
  5. ghandic commented on Oct 18, 2017

    @ghandic
    Contributor

    PR #748 should help with this clarification.

    Once the GeoJsonCss object is accepted I will more than happily add more documentation for a plethora of different styling options.

  6. added
    good first issue
    on May 4, 2019
  7. Conengmo commented on Nov 4, 2022

    @Conengmo
    Member

    We currently do have some examples on GeoJSON styling: https://nbviewer.org/github/python-visualization/folium/blob/main/examples/GeoJSON_and_choropleth.ipynb#Styling

    I found I had to ask explicitly for styling the data using folium.GeoJson(... styl_func=my_func).style_data()

    I don't think that's true anymore.

  8. removed
    good first issue
    on Nov 4, 2022
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions