class_docstr: Fill Pattern for polygon composed of alternating lines.
  
  Add these to the 'fillPattern' field in GeoJson style functions.
  
  Parameters
  ----------
  angle: float, default 0.5
      Angle of the line pattern (degrees). Should be between -360 and 360.
  weight: float, default 4
      Width of the main lines (pixels).
  space_weight: float
      Width of the alternate lines (pixels).
  color: string with hexadecimal, RGB, or named color, default "#000000"
      Color of the main lines.
  space_color: string with hexadecimal, RGB, or named color, default "#ffffff"
      Color of the alternate lines.
  opacity: float, default 0.75
      Opacity of the main lines. Should be between 0 and 1.
  space_opacity: float, default 0.0
      Opacity of the alternate lines. Should be between 0 and 1.
  
  See https://github.com/teastman/Leaflet.pattern for more information.
class_docstr_tok: ["Fill","Pattern","for","polygon","composed","of","alternating","lines",".","Add","these","to","the","'fillPattern","'","field","in","GeoJson","style","functions",".","Parameters","--","--","--","--","--","angle",":","float",",","default","0.5","Angle","of","the","line","pattern","(","degrees",")",".","Should","be","between","-360","and","360.","weight",":","float",",","default","4","Width","of","the","main","lines","(","pixels",")",".","space_weight",":","float","Width","of","the","alternate","lines","(","pixels",")",".","color",":","string","with","hexadecimal",",","RGB",",","or","named","color",",","default","``","#","000000","''","Color","of","the","main","lines",".","space_color",":","string","with","hexadecimal",",","RGB",",","or","named","color",",","default","``","#","ffffff","''","Color","of","the","alternate","lines",".","opacity",":","float",",","default","0.75","Opacity","of","the","main","lines",".","Should","be","between","0","and","1.","space_opacity",":","float",",","default","0.0","Opacity","of","the","alternate","lines",".","Should","be","between","0","and","1",".","See","https",":","\/\/github.com\/teastman\/Leaflet.pattern","for","more","information","."]
code: def render(self, **kwargs):
      self.parent_map = get_obj_in_upper_tree(self, Map)
      super().render(**kwargs)
  
file_path: folium/folium/plugins/pattern.py
imports: from branca.element import MacroElement
  from jinja2 import Template
  from folium.elements import JSCSSMixin
  from folium.folium import Map
  from folium.utilities import get_obj_in_upper_tree, parse_options
label_desc: Use image node_id 2 for calling the StripePattern obj's underlying member method code with example usage: obj.render() without return types