def build_polygon_dict(self,<EOL>path,<EOL>stroke_color='<STR_LIT>',<EOL>stroke_opacity=<NUM_LIT>,<EOL>stroke_weight=<NUM_LIT:2>,<EOL>fill_color='<STR_LIT>',<EOL>fill_opacity=<NUM_LIT>):
if not isinstance(path, list):<EOL><INDENT>raise AttributeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>polygon = {<EOL>'<STR_LIT:path>': path,<EOL>'<STR_LIT>': stroke_color,<EOL>'<STR_LIT>': stroke_opacity,<EOL>'<STR_LIT>': stroke_weight,<EOL>'<STR_LIT>': fill_color,<EOL>'<STR_LIT>': fill_opacity<EOL>}<EOL>return polygon<EOL>
Set a dictionary with the javascript class Polygon parameters

        This function sets a default drawing configuration if the user just
        pass the polygon 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 polygon
            stroke_color (str): Sets the color of the polygon border using
                hexadecimal color notation
            stroke_opacity (float): Sets the opacity of the polygon 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 polygon fill using
                hexadecimal color notation
            fill_opacity (float): Sets the opacity of the polygon fill