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

Show tertiary roads on lower zoom levels #1601

Open
yo-han opened this issue Dec 21, 2023 · 3 comments
Open

Show tertiary roads on lower zoom levels #1601

yo-han opened this issue Dec 21, 2023 · 3 comments

Comments

@yo-han
Copy link

yo-han commented Dec 21, 2023

I read about a similar issue already but It seems the code has changed a bit since then.

I'm working on a bicycle map and want to show tertiary at lower zoom levels as they are way more important to cyclists then highways. The problem is I can't really find any tutorials or info explaining where to start. I made some changes to the transportation layer mapping.yaml and transportation.sql without any luck. Anyone who can point me in the right direction?

@yqx674834119
Copy link

I had the same problem. I want to know which file I should modify to achieve a custom zoom level.

@yo-han
Copy link
Author

yo-han commented Dec 26, 2023

I did a quick and dirty fix for now which seems to work in the transportation.sql file. On row 377 I added these lines to the where clause:

...
WHERE NOT is_area
  AND
     WHEN zoom_level = 10 THEN
        CASE WHEN transportation_filter_z12(hl.highway, hl.construction) THEN TRUE
        END
     WHEN zoom_level = 11 THEN
       CASE WHEN transportation_filter_z12(hl.highway, hl.construction) THEN TRUE
       END
...

It does something but I'll keep looking for better solutions.

@nitrag
Copy link

nitrag commented Feb 4, 2024

Looking to do the same... Bueler?

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

3 participants