Skip to content

Fix/null safe rail tunnel bridge#60

Merged
Rub21 merged 2 commits into
stagingfrom
fix/null-safe-rail-tunnel-bridge
Apr 30, 2026
Merged

Fix/null safe rail tunnel bridge#60
Rub21 merged 2 commits into
stagingfrom
fix/null-safe-rail-tunnel-bridge

Conversation

@Rub21

@Rub21 Rub21 commented Apr 29, 2026

Copy link
Copy Markdown
Member

The PR #59 fixed filters using the pattern ["!=", ["get", "tunnel"], 1]["!=", ["coalesce", ["get", "tunnel"], 0], 1], but missed the inverse pattern ["==", ["get", "tunnel"], 0] (and the equivalent for bridge), which is used by rail layers and a couple of construction layers.

Since vector tiles omit the tunnel/bridge property when its value is 0, the strict equality == 0 evaluates to false against null and the layers stop rendering. As a result, only bridge rails were visible on the map.

@Rub21 Rub21 requested a review from 1ec5 April 29, 2026 22:50
@Rub21 Rub21 merged commit d0225b8 into staging Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants