class_docstr: Draw map feature
  
  The map feature are drawn without any special projections.
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  
  Notes
  -----
  This geom is best suited for plotting a shapefile read into
  geopandas dataframe. The dataframe should have a `geometry`
  column.
class_docstr_tok: ["Draw","map","feature","The","map","feature","are","drawn","without","any","special","projections",".","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","Notes","--","--","-","This","geom","is","best","suited","for","plotting","a","shapefile","read","into","geopandas","dataframe",".","The","dataframe","should","have","a","`","geometry","`","column","."]
docstr: Draw a rectangle in the box
  
  Parameters
  ----------
  data : Series
      Data Row
  da : DrawingArea
      Canvas
  lyr : layer
      Layer
  
  Returns
  -------
  out : DrawingArea
docstr_tok: ["Draw","a","rectangle","in","the","box","Parameters","--","--","--","--","--","data",":","Series","Data","Row","da",":","DrawingArea","Canvas","lyr",":","layer","Layer","Returns","--","--","--","-","out",":","DrawingArea"]
code: def draw_legend(
      data: pd.Series[Any], da: DrawingArea, lyr: Layer
  ) -> DrawingArea:
      """
      Draw a rectangle in the box
  
      Parameters
      ----------
      data : Series
          Data Row
      da : DrawingArea
          Canvas
      lyr : layer
          Layer
  
      Returns
      -------
      out : DrawingArea
      """
      data["size"] = data["stroke"]
      del data["stroke"]
      return geom_polygon.draw_legend(data, da, lyr)
  
file_path: plotnine/plotnine/geoms/geom_map.py
imports: from __future__ import annotations
  import typing
  import numpy
  import pandas
  from .._utils import SIZE_FACTOR, to_rgba
  from ..doctools import document
  from ..exceptions import PlotnineError
  from .geom import geom
  from .geom_point import geom_point
  from .geom_polygon import geom_polygon
label_desc: Use image node_id 4 for calling the geom_map obj's underlying member method code with example usage: obj.draw_legend(data, da, lyr) and returns: geom_polygon