I'm trying to buffer a line using Geometry Generator in QGIS (
buffer($geometry,3)) However although I've set the Simple Fill join style to Miter I can't get the ends of the buffer to be flat.
I wanted to use a polygon for styling (rather than having the line width set to 6 map units) because it's much easier to have a semi-transparent fill with a consistent border and a line fill effect.
Is there any way to set the end cap for polygon styles or using expressions? I notice
single_sided_buffer() has a parameter for join style but
buffer() does not.