With a line geometry layer, I can use a "Marker Line" symbology element to regularly space markers along a line, for example every 20mm, even if there's no line vertexes there. I can also use the "Rotate marker to follow line direction" alongside the "Average angle over.." boxes to get a marker that points consistently along or across the line. Like this:
But if the track heads west, the car is pointing in the wrong direction!
What I'd like to do is vary aspects of the marker, depending on some geometric property of the marker being made at each point. My use case would be to select a different SVG icon based on the set rotation of the marker as controlled by the "Marker Line" machinery. Try as a I might I can't get any properties of the marker in the expression dialog anywhere, all I seem to get is properties of the feature being drawn.
I have tried making a Marker Line >>> Marker >>> Geometry Generator but still couldn't get the rotation angle into an expression.
I don't really want to generate a new points layer with all the marker points and a rotation attribute since this is a dynamic process, but I suppose if the marker points and rotations could be made as a virtual layer that would work (although I suspect if that could be done then the rotation could be gotten by the marker symbology...).


