(self, locations, popup=None, tooltip=None, **kwargs)
| 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 | ) |
nothing calls this directly
no test coverage detected