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

Added text-repeat-distance for railways (part of #3295) #3316

Merged
merged 2 commits into from
Jul 28, 2018

Conversation

Penegal
Copy link
Contributor

@Penegal Penegal commented Jul 23, 2018

This PR adds text-repeat-distance on railways texts, to avoid uselessly cluttering the map by repeating the labels to close of one another; this partly supersedes #3295 which was to be split in several PRs. This includes the removing of the conflicting, deprecated text-min-distance.

Test renderings, before/after:
01704473417392_old_railway
01704473417392_new_railway
https://www.openstreetmap.org/#map=15/49.0035/5.9582

02008434052688_old_railway
02008434052688_new_railway
https://www.openstreetmap.org/#map=15/49.0075/6.0320

102575255415005_old_railway
102575255415005_new_railway
https://www.openstreetmap.org/#map=16/49.0971/6.1663

Edit: fixes #2783; added links to test locations.

@Tomasz-W
Copy link

@Penegal This resolves also #2783. Please add auto-close keyword for it in first post.

@Penegal
Copy link
Contributor Author

Penegal commented Jul 23, 2018

@Tomasz-W: done; thanks for noticing.

@kocio-pl
Copy link
Collaborator

I guess 200 is enough and could work better than 600:

CMK in Poland

Before
79qcucid

200
3qlj_njq

600
pw_6s ml

@Penegal
Copy link
Contributor Author

Penegal commented Jul 27, 2018

@kocio-pl: agreed, 200 seems enough. I found some corner cases, but they may be explainable by differences in labels, as even a 600 value doesn't remove the duplicated labels just 50px apart.

@kocio-pl
Copy link
Collaborator

Great, could you make new batch of test rendering of the same places as before? I will check it on some others.

@Penegal
Copy link
Contributor Author

Penegal commented Jul 27, 2018

@kocio-pl
Copy link
Collaborator

Looks OK for me - Tokyo example:

Before
mfmxalgz

After
amidv8qf

@kocio-pl kocio-pl merged commit 8c78274 into gravitystorm:master Jul 28, 2018
@kocio-pl
Copy link
Collaborator

Thanks for this part!

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.

Large label distance for railway labels leads to ambiguities
3 participants