Skip to content

RegularPolygonMarker needs a docstring #281

Closed

Description

@ocefpaf

Things like opacity and fill_opacity, color and fill_color requires better explanation.

class RegularPolygonMarker(MacroElement):
    def __init__(self, location, popup=None,
                 color='black', opacity=1, weight=2,
                 fill_color='blue', fill_opacity=1,
                 number_of_sides=4, rotation=0, radius=15):
        """
        TODO docstring here

        """

Reference: https://github.com/humangeo/leaflet-dvf/wiki/6.-Markers

@jelmelk is this something you are willing to do?

Activity

  1. added
    documentation
    on Dec 4, 2015
  2. added this to the milestone on Dec 4, 2015
  3. ocefpaf commented on Dec 4, 2015

    @ocefpaf
    MemberAuthor

    Also, the mapping from the old to the new syntax might help to sort this out.

            marker = RegularPolygonMarker(location,
                                          popup=popup_,
                                          color=line_color,
                                          opacity=line_opacity,
                                          weight=line_weight,
                                          fill_color=fill_color,
                                          fill_opacity=fill_opacity,
                                          number_of_sides=num_sides,
                                          rotation=rotation,
                                          radius=radius)
  4. BibMartin commented on Dec 7, 2015

    @BibMartin
    Contributor

    Fixed by #282. Closing this.

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