class_docstr: Style options for a line
  
  Pass an instance of this class to :func:`gmaps.drawing_layer` to
  control the style of new user-drawn lines on the map.
  
  :Examples:
  
  >>> fig = gmaps.figure()
  >>> drawing = gmaps.drawing_layer(
          marker_options=gmaps.MarkerOptions(hover_text='some text'),
          line_options=gmaps.LineOptions(stroke_color='red')
      )
  >>> fig.add_layer(drawing)
  >>> fig # display the figure
  
  {stroke_options_params}
class_docstr_tok: ["Style","options","for","a","line","Pass","an","instance","of","this","class","to",":","func",":","`","gmaps.drawing_layer","`","to","control","the","style","of","new","user-drawn","lines","on","the","map",".",":","Examples",":",">",">",">","fig","=","gmaps.figure","(",")",">",">",">","drawing","=","gmaps.drawing_layer","(","marker_options=gmaps.MarkerOptions","(","hover_text='some","text","'",")",",","line_options=gmaps.LineOptions","(","stroke_color='red","'",")",")",">",">",">","fig.add_layer","(","drawing",")",">",">",">","fig","#","display","the","figure","{","stroke_options_params","}"]
code: def to_line(self, start, end):
      new_line = Line(
          start=start,
          end=end,
          stroke_color=self.stroke_color,
          stroke_weight=self.stroke_weight,
          stroke_opacity=self.stroke_opacity,
      )
      return new_line
  
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 for calling the LineOptions obj's underlying member method code with example usage: obj.to_line(start, end) and returns: new_line