class_docstr: Adds a search tool to your map.
  
  Parameters
  ----------
  layer: GeoJson, TopoJson, FeatureGroup, MarkerCluster class object.
      The map layer to index in the Search view.
  search_label: str, optional
      'properties' key in layer to index Search, if layer is GeoJson/TopoJson.
  search_zoom: int, optional
      Zoom level to set the map to on match.
      By default zooms to Polygon/Line bounds and points
      on their natural extent.
  geom_type: str, default 'Point'
      Feature geometry type. "Point", "Line" or "Polygon"
  position: str, default 'topleft'
      Change the position of the search bar, can be:
      'topleft', 'topright', 'bottomright' or 'bottomleft',
  placeholder: str, default 'Search'
      Placeholder text inside the Search box if nothing is entered.
  collapsed: boolean, default False
      Whether the Search box should be collapsed or not.
  **kwargs.
      Assorted style options to change feature styling on match.
      Use the same way as vector layer arguments.
  
  See https://github.com/stefanocudini/leaflet-search for more information.
class_docstr_tok: ["Adds","a","search","tool","to","your","map",".","Parameters","--","--","--","--","--","layer",":","GeoJson",",","TopoJson",",","FeatureGroup",",","MarkerCluster","class","object",".","The","map","layer","to","index","in","the","Search","view",".","search_label",":","str",",","optional","'properties","'","key","in","layer","to","index","Search",",","if","layer","is","GeoJson\/TopoJson",".","search_zoom",":","int",",","optional","Zoom","level","to","set","the","map","to","on","match",".","By","default","zooms","to","Polygon\/Line","bounds","and","points","on","their","natural","extent",".","geom_type",":","str",",","default","'Point'","Feature","geometry","type",".","``","Point","''",",","``","Line","''","or","``","Polygon","''","position",":","str",",","default","'topleft'","Change","the","position","of","the","search","bar",",","can","be",":","'topleft","'",",","'topright","'",",","'bottomright","'","or","'bottomleft","'",",","placeholder",":","str",",","default","'Search'","Placeholder","text","inside","the","Search","box","if","nothing","is","entered",".","collapsed",":","boolean",",","default","False","Whether","the","Search","box","should","be","collapsed","or","not",".","*","*","kwargs",".","Assorted","style","options","to","change","feature","styling","on","match",".","Use","the","same","way","as","vector","layer","arguments",".","See","https",":","\/\/github.com\/stefanocudini\/leaflet-search","for","more","information","."]
code: def __init__(
      self,
      layer,
      search_label=None,
      search_zoom=None,
      geom_type="Point",
      position="topleft",
      placeholder="Search",
      collapsed=False,
      **kwargs,
  ):
      super().__init__()
      assert isinstance(
          layer, (GeoJson, MarkerCluster, FeatureGroup, TopoJson)
      ), (
          "Search can only index FeatureGroup, "
          "MarkerCluster, GeoJson, and TopoJson layers at "
          "this time."
      )
      self.layer = layer
      self.search_label = search_label
      self.search_zoom = search_zoom
      self.geom_type = geom_type
      self.position = position
      self.placeholder = placeholder
      self.collapsed = collapsed
      self.options = parse_options(**kwargs)
  
file_path: folium/folium/plugins/search.py
imports: from branca.element import MacroElement
  from jinja2 import Template
  from folium import Map
  from folium.elements import JSCSSMixin
  from folium.features import FeatureGroup, GeoJson, TopoJson
  from folium.plugins import MarkerCluster
  from folium.utilities import parse_options
label_desc: Use image node_id 1 to create a new Search object from inherited base classes: JSCSSMixin, MacroElement with example: obj = Search(layer, search_label, search_zoom, geom_type, position, placeholder, collapsed)