-
|
Hi I know some basic coding but I don't know where to start in this case... Currently, the signal icons are always up-right. This makes sense for symmetrical signals, but is a little odd for asymmetrical signals, like those in Belgium. So I want to try and put them in the same orientation as the direction indicator. Just locally of course. It seems not too difficult but I guess I could use a little head start. Any help is much appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
MatisseBE
Dec 28, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MatisseBE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Looks pretty good!
In styles.mjs, for railway_signals_medium only:
rotating the icon on the 'way' direction:
'icon-rotate': ['get', 'azimuth']I also applied a offset, which ideally is based on the signal position tag, but in my specific case, the regime tag works best.
Lastly, I also had to update the 'imageLayerWithOutline', because the anchoring caused the outline to be exposed, "deforming" the signal icon. So I am now not casting a "shadow" for signals.