def paint(self):
<EOL>snippet = {<EOL>'<STR_LIT>': VectorStyle.get_style_value(self.opacity),<EOL>'<STR_LIT>': VectorStyle.get_style_value(self.color),<EOL>'<STR_LIT>': VectorStyle.get_style_value(self.width),<EOL>}<EOL>if self.translate:<EOL><INDENT>snippet['<STR_LIT>'] = self.translate<EOL><DEDENT>if self.dasharray:<EOL><INDENT>snippet['<STR_LIT>'] = VectorStyle.get_style_value(self.dasharray)<EOL><DEDENT>return snippet<EOL>
Renders a javascript snippet suitable for use as a mapbox-gl line paint entry

Returns:
    A dict that can be converted to a mapbox-gl javascript paint snippet