I got two layers: (1) a line layer with water pipelines and (2) a point layer that shows hydrants and so forth. The points are located, mostly, on the line layer.
For the symbology of the hydrants i want to use a simple marker half_square / rectangle that should be rotated 90° to the line layer.
My approach would be to use an expression for the rotation, but i have no idea how that expression has to look.

