Skip to content
Discussion options

You must be logged in to vote

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.

...imageLayerWithOutline(
  `railway_signals_medium_${featureIndex}`,
  ['get', `feature${featureIndex}`],
  {
    type: 'symbol',
    minzoom: 13,
    maxzoom: 16,
    source: 'openrailwaymap_signals',
    'source-layer': 'signals_rai…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MatisseBE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant