class_docstr: Widget representing a closed polygon on a map
  
  Add this polygon to a map via the :func:`gmaps.drawing_layer`
  function, or by passing it directly to the ``.features`` array
  of a :class:`gmaps.Drawing` instance.
  
  :Examples:
  
  >>> fig = gmaps.figure()
  >>> drawing = gmaps.drawing_layer(features=[
       gmaps.Polygon(
          [(46.72, 6.06), (46.48, 6.49), (46.79, 6.91)],
          stroke_color='red', fill_color=(255, 0, 132)
      )
  ])
  >>> fig.add_layer(drawing)
  
  You can also add a polygon to an existing :class:`gmaps.Drawing`
  instance:
  
  >>> fig = gmaps.figure()
  >>> drawing = gmaps.drawing_layer()
  >>> fig.add_layer(drawing)
  >>> fig # display the figure
  
  You can now add polygons directly on the map:
  
  >>> drawing.features = [
       gmaps.Polygon(
           [(46.72, 6.06), (46.48, 6.49), (46.79, 6.91)]
           stroke_color='red', fill_color=(255, 0, 132)
       )
  ]
  
  :param path:
      List of (latitude, longitude) pairs denoting each point on the polygon.
      Latitudes are expressed as a float between -90 (corresponding to 90
      degrees south) and +90 (corresponding to 90 degrees north). Longitudes
      are expressed as a float between -180 (corresponding to 180 degrees
      west) and +180 (corresponding to 180 degrees east).
  :type path: list of tuples of floats
  
  {stroke_options_params}
  
  {fill_options_params}
class_docstr_tok: ["Widget","representing","a","closed","polygon","on","a","map","Add","this","polygon","to","a","map","via","the",":","func",":","`","gmaps.drawing_layer","`","function",",","or","by","passing","it","directly","to","the","``",".features","``","array","of","a",":","class",":","`","gmaps.Drawing","`","instance",".",":","Examples",":",">",">",">","fig","=","gmaps.figure","(",")",">",">",">","drawing","=","gmaps.drawing_layer","(","features=","[","gmaps.Polygon","(","[","(","46.72",",","6.06",")",",","(","46.48",",","6.49",")",",","(","46.79",",","6.91",")","]",",","stroke_color='red","'",",","fill_color=","(","255",",","0",",","132",")",")","]",")",">",">",">","fig.add_layer","(","drawing",")","You","can","also","add","a","polygon","to","an","existing",":","class",":","`","gmaps.Drawing","`","instance",":",">",">",">","fig","=","gmaps.figure","(",")",">",">",">","drawing","=","gmaps.drawing_layer","(",")",">",">",">","fig.add_layer","(","drawing",")",">",">",">","fig","#","display","the","figure","You","can","now","add","polygons","directly","on","the","map",":",">",">",">","drawing.features","=","[","gmaps.Polygon","(","[","(","46.72",",","6.06",")",",","(","46.48",",","6.49",")",",","(","46.79",",","6.91",")","]","stroke_color='red","'",",","fill_color=","(","255",",","0",",","132",")",")","]",":","param","path",":","List","of","(","latitude",",","longitude",")","pairs","denoting","each","point","on","the","polygon",".","Latitudes","are","expressed","as","a","float","between","-90","(","corresponding","to","90","degrees","south",")","and","+90","(","corresponding","to","90","degrees","north",")",".","Longitudes","are","expressed","as","a","float","between","-180","(","corresponding","to","180","degrees","west",")","and","+180","(","corresponding","to","180","degrees","east",")",".",":","type","path",":","list","of","tuples","of","floats","{","stroke_options_params","}","{","fill_options_params","}"]
code: def __init__(
      self,
      path,
      stroke_color=DEFAULT_STROKE_COLOR,
      stroke_weight=2.0,
      stroke_opacity=geotraitlets.StrokeOpacity.default_value,
      fill_color=DEFAULT_FILL_COLOR,
      fill_opacity=geotraitlets.FillOpacity.default_value,
  ):
      kwargs = dict(
          path=path,
          stroke_color=stroke_color,
          stroke_weight=stroke_weight,
          stroke_opacity=stroke_opacity,
          fill_color=fill_color,
          fill_opacity=fill_opacity,
      )
      super(Polygon, self).__init__(**kwargs)
  
imports: import ipywidgets
  from traitlets import Unicode, List, Enum, Instance, HasTraits, Bool, default, observe, Float
  from .None import geotraitlets
  from .maps import GMapsWidgetMixin
  from .marker import MarkerOptions
  from ._docutils import doc_subst
label_desc: Use image node_id 1 to create a new Polygon object from inherited base classes: GMapsWidgetMixin, widgets with example: obj = Polygon(path, stroke_color, stroke_weight, stroke_opacity, fill_color, fill_opacity)