(
self,
padding: int = 0,
max_zoom: Optional[int] = None,
fly: bool = False,
fit_on_map_load: bool = True,
)
| 736 | ) |
| 737 | |
| 738 | def __init__( |
| 739 | self, |
| 740 | padding: int = 0, |
| 741 | max_zoom: Optional[int] = None, |
| 742 | fly: bool = False, |
| 743 | fit_on_map_load: bool = True, |
| 744 | ): |
| 745 | super().__init__() |
| 746 | self._name = "FitOverlays" |
| 747 | self.method = "flyToBounds" if fly else "fitBounds" |
| 748 | self.fit_on_map_load = fit_on_map_load |
| 749 | self.options = remove_empty(padding=(padding, padding), max_zoom=max_zoom) |
| 750 | |
| 751 | |
| 752 | class CustomPane(MacroElement): |
nothing calls this directly
no test coverage detected