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

Method __init__

folium/plugins/antpath.py:46–68  ·  view source on GitHub ↗
(self, locations, popup=None, tooltip=None, **kwargs)

Source from the content-addressed store, hash-verified

44 ]
45
46 def __init__(self, locations, popup=None, tooltip=None, **kwargs):
47 super().__init__(
48 locations,
49 popup=popup,
50 tooltip=tooltip,
51 )
52
53 self._name = "AntPath"
54 # Polyline + AntPath defaults.
55 self.options = path_options(line=True, **kwargs)
56 self.options.update(
57 {
58 "paused": kwargs.pop("paused", False),
59 "reverse": kwargs.pop("reverse", False),
60 "hardwareAcceleration": kwargs.pop("hardware_acceleration", False),
61 "delay": kwargs.pop("delay", 400),
62 "dashArray": kwargs.pop("dash_array", [10, 20]),
63 "weight": kwargs.pop("weight", 5),
64 "opacity": kwargs.pop("opacity", 0.5),
65 "color": kwargs.pop("color", "#0000FF"),
66 "pulseColor": kwargs.pop("pulse_color", "#FFFFFF"),
67 }
68 )

Callers

nothing calls this directly

Calls 1

path_optionsFunction · 0.90

Tested by

no test coverage detected