Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
Conengmo committed Jan 1, 2025
1 parent e7569a5 commit 2ce4fbe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions folium/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,16 @@ class Marker(MacroElement):

class SetIcon(MacroElement):
"""Set the icon of a marker after both are created."""
_template = Template("""

_template = Template(
"""
{% macro script(this, kwargs) %}
{{ this.marker.get_name() }}.setIcon({{ this.icon.get_name() }});
{% endmacro %}
""")
"""
)

def __init__(self, marker: 'Marker', icon: 'Icon'):
def __init__(self, marker: "Marker", icon: "Icon"):
super().__init__()
self._name = "SetIcon"
self.marker = marker
Expand Down

0 comments on commit 2ce4fbe

Please sign in to comment.