def build_polyline_dict(self,<EOL>path,<EOL>stroke_color='<STR_LIT>',<EOL>stroke_opacity=<NUM_LIT>,<EOL>stroke_weight=<NUM_LIT:2>):
if not isinstance(path, list):<EOL><INDENT>raise AttributeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>polyline = {<EOL>'<STR_LIT:path>': path,<EOL>'<STR_LIT>': stroke_color,<EOL>'<STR_LIT>': stroke_opacity,<EOL>'<STR_LIT>': stroke_weight,<EOL>}<EOL>return polyline<EOL>
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.