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

roads matcher #407

Merged
merged 23 commits into from
Mar 10, 2025
Merged

roads matcher #407

merged 23 commits into from
Mar 10, 2025

Conversation

wipfli
Copy link
Collaborator

@wipfli wipfli commented Mar 3, 2025

Adds matcher syntax for the roads layer.
It is based on some files from the matcher pull request.
This should reproduce 1-to-1 the old behavior, except:

  • footway=* is only used in kind_detail when highway=footway

Demo should be online in a few minutes at https://pmtiles.io/?url=https%3A%2F%2Fprotomaps.dev%2F%7Ewipfli%2Froads-matcher.pmtiles#map=7.88/46.788/8.878

Demo with style:

https://maps.protomaps.com/#flavorName=light&lang=en&map=12.53/39.09043/-94.57476&tiles=https://protomaps.dev/~wipfli/roads-matcher.pmtiles

@wipfli
Copy link
Collaborator Author

wipfli commented Mar 10, 2025

I just noticed that we did not have

.setMinPixelSize(0)
.setPixelTolerance(0)

on the non-highway features. This meant that line merging probably didn't work well...

@bdon bdon merged commit 4a2f55b into protomaps:main Mar 10, 2025
5 checks passed
@wipfli wipfli deleted the roads-matcher branch March 10, 2025 18:47
bdon added a commit that referenced this pull request Mar 10, 2025
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