Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-order sorting for roads fails #7

Open
matkoniecz opened this issue Jun 17, 2017 · 0 comments
Open

z-order sorting for roads fails #7

matkoniecz opened this issue Jun 17, 2017 · 0 comments

Comments

@matkoniecz
Copy link
Contributor

Expected: bridge will be marked by rendering of road outline of bridge above road below bridge

What happens: roads are rendered like on junction

layers are used correctly in OSM data

https://mapzen.com/tangram/play/?#18.25000/50.08117/19.89062

selection_005
selection_006

It seems that

        z-order:
            filter: { $zoom: {min: 14} }
            draw:
                flatlines:
                    # let roads sort themselves past zoom 14
                    order: function() { return feature.sort_rank; }
                    # but give them all the same outline
                    outline:
                        order: 352 # magic number

            bridges-tunnels:
                filter: { any: [is_bridge: true, is_tunnel: true] }
                draw:
                    flatlines:
                        outline:
                            # except bridges and tunnels, their outlines should also self-sort
                            order: function() { return feature.sort_rank; }

was supposed to handle this but it works only sometimes.

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

No branches or pull requests

1 participant