(
        self,
        north,  # type: float
        west,  # type: float
        south,  # type: float
        east,  # type: float
        stroke_color="#FF0000",  # type: str
        stroke_opacity=0.8,  # type: float
        stroke_weight=2,  # type: int
        fill_color="#FF0000",  # type: str
        fill_opacity=0.3,  # type: float
    )
return rectangle
Set a dictionary with the javascript class Rectangle parameters

        This function sets a default drawing configuration if the user just
        pass the rectangle bounds, but also allows to set each parameter
        individually if the user wish so.

        Args:
            north (float): The north latitude bound
            west (float): The west longitude bound
            south (float): The south latitude bound
            east (float): The east longitude bound
            stroke_color (str): Sets the color of the rectangle border using
                hexadecimal color notation
            stroke_opacity (float): Sets the opacity of the rectangle border
                in percentage. If stroke_opacity = 0, the border is transparent
            stroke_weight (int): Sets the stroke girth in pixels.
            fill_color (str): Sets the color of the rectangle fill using
                hexadecimal color notation
            fill_opacity (float): Sets the opacity of the rectangle fill
Set a dictionary with the javascript class Rectangle parameters
Set a dictionary with the javascript class Rectangle parameters
def build_rectangle_dict(
        self,
        north,  # type: float
        west,  # type: float
        south,  # type: float
        east,  # type: float
        stroke_color="#FF0000",  # type: str
        stroke_opacity=0.8,  # type: float
        stroke_weight=2,  # type: int
        fill_color="#FF0000",  # type: str
        fill_opacity=0.3,  # type: float
    ):
        # type: (...) -> Dict
        """Set a dictionary with the javascript class Rectangle parameters

        This function sets a default drawing configuration if the user just
        pass the rectangle bounds, but also allows to set each parameter
        individually if the user wish so.

        Args:
            north (float): The north latitude bound
            west (float): The west longitude bound
            south (float): The south latitude bound
            east (float): The east longitude bound
            stroke_color (str): Sets the color of the rectangle border using
                hexadecimal color notation
            stroke_opacity (float): Sets the opacity of the rectangle border
                in percentage. If stroke_opacity = 0, the border is transparent
            stroke_weight (int): Sets the stroke girth in pixels.
            fill_color (str): Sets the color of the rectangle fill using
                hexadecimal color notation
            fill_opacity (float): Sets the opacity of the rectangle fill
        """
        rectangle = {
            "stroke_color": stroke_color,
            "stroke_opacity": stroke_opacity,
            "stroke_weight": stroke_weight,
            "fill_color": fill_color,
            "fill_opacity": fill_opacity,
            "bounds": {"north": north, "west": west, "south": south, "east": east},
        }

        return rectangle
def build_rectangle_dict ( self , north , # type: float west , # type: float south , # type: float east , # type: float stroke_color = "#FF0000" , # type: str stroke_opacity = 0.8 , # type: float stroke_weight = 2 , # type: int fill_color = "#FF0000" , # type: str fill_opacity = 0.3 , # type: float ) : # type: (...) -> Dict rectangle = { "stroke_color" : stroke_color , "stroke_opacity" : stroke_opacity , "stroke_weight" : stroke_weight , "fill_color" : fill_color , "fill_opacity" : fill_opacity , "bounds" : { "north" : north , "west" : west , "south" : south , "east" : east } , } return rectangle