MCPcopy Index your code
hub / github.com/python-visualization/folium / __init__

Method __init__

folium/plugins/semicircle.py:60–94  ·  view source on GitHub ↗
(
        self,
        location,
        radius,
        direction=None,
        arc=None,
        start_angle=None,
        stop_angle=None,
        popup=None,
        tooltip=None,
        **kwargs
    )

Source from the content-addressed store, hash-verified

58 ]
59
60 def __init__(
61 self,
62 location,
63 radius,
64 direction=None,
65 arc=None,
66 start_angle=None,
67 stop_angle=None,
68 popup=None,
69 tooltip=None,
70 **kwargs
71 ):
72 super().__init__(location, popup=popup, tooltip=tooltip)
73 self._name = "SemiCircle"
74 self.direction = (
75 (direction, arc) if direction is not None and arc is not None else None
76 )
77 self.options = path_options(line=False, radius=radius, **kwargs)
78 self.options.update(
79 dict(
80 start_angle=start_angle,
81 stop_angle=stop_angle,
82 )
83 )
84 self.options = remove_empty(**self.options)
85
86 if not (
87 (direction is None and arc is None)
88 and (start_angle is not None and stop_angle is not None)
89 or (direction is not None and arc is not None)
90 and (start_angle is None and stop_angle is None)
91 ):
92 raise ValueError(
93 "Invalid arguments. Either provide direction and arc OR start_angle and stop_angle"
94 )

Callers

nothing calls this directly

Calls 2

path_optionsFunction · 0.90
remove_emptyFunction · 0.90

Tested by

no test coverage detected