I have a layer that includes points for electric poles (Circles) and transformers (triangles). Transformers can be on poles or on their own. I would like to displace the transformers only if they are on top of a pole, keeping their exact location when they are on their own so they follow the electric wires. I have tried a conditional in the displacement expression box:
if( intersects( $geometry , get_feature( @layer_name , "Type" , 'Pole' )),1,0)
but it is not working.
What I don't want
What I want ONLY when there is a Pole (circle) present.