class_docstr: Widget representing a single line on a map
  
  Add this line to a map via the :func:`gmaps.drawing_layer` function, or by
  passing it directly to the ``.features`` array of an existing instance of
  :class:`gmaps.Drawing`.
  
  :Examples:
  
  >>> fig = gmaps.figure()
  >>> drawing = gmaps.drawing_layer(features=[
       gmaps.Line((46.44, 5.24), (46.23, 5.86), stroke_color='green'),
       gmaps.Line((48.44, 1.32), (47.13, 3.91), stroke_weight=5.0)
  ])
  >>> fig.add_layer(drawing)
  
  You can also add a line 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 lines directly on the map:
  
  >>> drawing.features = [
       gmaps.Line((46.44, 5.24), (46.23, 5.86), stroke_color='green'),
       gmaps.Line((48.44, 1.32), (47.13, 3.91), stroke_weight=5.0)
  ]
  
  :param start:
      (latitude, longitude) pair denoting the start of the line. 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 start: tuple of floats
  
  :param end:
      (latitude, longitude) pair denoting the end of the line. 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 start: tuple of floats
  
  {stroke_options_params}
class_docstr_tok: ["Widget","representing","a","single","line","on","a","map","Add","this","line","to","a","map","via","the",":","func",":","`","gmaps.drawing_layer","`","function",",","or","by","passing","it","directly","to","the","``",".features","``","array","of","an","existing","instance","of",":","class",":","`","gmaps.Drawing","`",".",":","Examples",":",">",">",">","fig","=","gmaps.figure","(",")",">",">",">","drawing","=","gmaps.drawing_layer","(","features=","[","gmaps.Line","(","(","46.44",",","5.24",")",",","(","46.23",",","5.86",")",",","stroke_color='green","'",")",",","gmaps.Line","(","(","48.44",",","1.32",")",",","(","47.13",",","3.91",")",",","stroke_weight=5.0",")","]",")",">",">",">","fig.add_layer","(","drawing",")","You","can","also","add","a","line","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","lines","directly","on","the","map",":",">",">",">","drawing.features","=","[","gmaps.Line","(","(","46.44",",","5.24",")",",","(","46.23",",","5.86",")",",","stroke_color='green","'",")",",","gmaps.Line","(","(","48.44",",","1.32",")",",","(","47.13",",","3.91",")",",","stroke_weight=5.0",")","]",":","param","start",":","(","latitude",",","longitude",")","pair","denoting","the","start","of","the","line",".","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","start",":","tuple","of","floats",":","param","end",":","(","latitude",",","longitude",")","pair","denoting","the","end","of","the","line",".","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","start",":","tuple","of","floats","{","stroke_options_params","}"]
code: def __init__(
      self,
      start,
      end,
      stroke_color=DEFAULT_STROKE_COLOR,
      stroke_weight=2.0,
      stroke_opacity=geotraitlets.StrokeOpacity.default_value,
  ):
      kwargs = dict(
          start=start,
          end=end,
          stroke_color=stroke_color,
          stroke_weight=stroke_weight,
          stroke_opacity=stroke_opacity,
      )
      super(Line, 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 Line object from inherited base classes: GMapsWidgetMixin, widgets with example: obj = Line(start, end, stroke_color, stroke_weight, stroke_opacity)