class_docstr: Fit the bounds of the maps to the enabled overlays.
  
  Parameters
  ----------
  padding: int, default 0
      Amount of padding in pixels applied in the corners.
  max_zoom: int, optional
      The maximum possible zoom to use when fitting to the bounds.
  fly: bool, default False
      Use a smoother, longer animation.
  fit_on_map_load: bool, default True
      Apply the fit when initially loading the map.
class_docstr_tok: ["Fit","the","bounds","of","the","maps","to","the","enabled","overlays",".","Parameters","--","--","--","--","--","padding",":","int",",","default","0","Amount","of","padding","in","pixels","applied","in","the","corners",".","max_zoom",":","int",",","optional","The","maximum","possible","zoom","to","use","when","fitting","to","the","bounds",".","fly",":","bool",",","default","False","Use","a","smoother",",","longer","animation",".","fit_on_map_load",":","bool",",","default","True","Apply","the","fit","when","initially","loading","the","map","."]
code: def __init__(
      self,
      padding: int = 0,
      max_zoom: Optional[int] = None,
      fly: bool = False,
      fit_on_map_load: bool = True,
  ):
      super().__init__()
      self._name = "FitOverlays"
      self.method = "flyToBounds" if fly else "fitBounds"
      self.fit_on_map_load = fit_on_map_load
      self.options = parse_options(
          padding=(padding, padding), max_zoom=max_zoom
      )
  
imports: import warnings
  from collections import OrderedDict
  from typing import Dict, List, Optional, Sequence, Tuple, Type, Union
  from branca.element import Element, Figure, Html, MacroElement
  from jinja2 import Template
  from folium.elements import ElementAddToElement
  from folium.utilities import TypeBounds, TypeJsonValue, camelize, escape_backticks, parse_options, validate_location
label_desc: Use image node_id 1 to create a new FitOverlays object from inherited base classes: MacroElement with example: obj = FitOverlays(padding, max_zoom, fly, fit_on_map_load)