(
        self, path, stroke_color="#FF0000", stroke_opacity=0.8, stroke_weight=2
    )
return polyline
Set a dictionary with the javascript class Polyline parameters

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

        Args:
            path (list): A list of latitude and longitude point for the
            polyline 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.
Set a dictionary with the javascript class Polyline parameters
Set a dictionary with the javascript class Polyline parameters
def build_polyline_dict(
        self, path, stroke_color="#FF0000", stroke_opacity=0.8, stroke_weight=2
    ):
        # type: (List[Dict], str, float, int) -> Dict
        """Set a dictionary with the javascript class Polyline parameters

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

        Args:
            path (list): A list of latitude and longitude point for the
            polyline 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.
        """

        if not isinstance(path, list):
            raise AttributeError(
                "To build a map path a list of dictionaries"
                " of latitude and logitudes is required"
            )

        polyline = {
            "path": path,
            "stroke_color": stroke_color,
            "stroke_opacity": stroke_opacity,
            "stroke_weight": stroke_weight,
        }

        return polyline
def build_polyline_dict ( self , path , stroke_color = "#FF0000" , stroke_opacity = 0.8 , stroke_weight = 2 ) : # type: (List[Dict], str, float, int) -> Dict if not isinstance ( path , list ) : raise AttributeError ( "To build a map path a list of dictionaries" " of latitude and logitudes is required" ) polyline = { "path" : path , "stroke_color" : stroke_color , "stroke_opacity" : stroke_opacity , "stroke_weight" : stroke_weight , } return polyline