MCPcopy
hub / github.com/python-visualization/folium / __init__

Method __init__

folium/vector_layers.py:135–148  ·  view source on GitHub ↗
(
        self,
        locations: TypeMultiLine,
        popup: Union[Popup, str, None] = None,
        tooltip: Union[Tooltip, str, None] = None,
    )

Source from the content-addressed store, hash-verified

133 """
134
135 def __init__(
136 self,
137 locations: TypeMultiLine,
138 popup: Union[Popup, str, None] = None,
139 tooltip: Union[Tooltip, str, None] = None,
140 ):
141 super().__init__()
142 self.locations = validate_multi_locations(locations)
143 if popup is not None:
144 self.add_child(popup if isinstance(popup, Popup) else Popup(str(popup)))
145 if tooltip is not None:
146 self.add_child(
147 tooltip if isinstance(tooltip, Tooltip) else Tooltip(str(tooltip))
148 )
149
150 def _get_self_bounds(self) -> List[List[Optional[float]]]:
151 """Compute the bounds of the object itself."""

Callers

nothing calls this directly

Calls 5

validate_multi_locationsFunction · 0.90
PopupClass · 0.90
TooltipClass · 0.90
__init__Method · 0.45
add_childMethod · 0.45

Tested by

no test coverage detected