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

consider other tags for labelling features #9588

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Apr 17, 2023

Closes #8966, Closes #9526

This PR considers other name tags when labelling features in the UI and on the map.

These tags are considered: alt_name, official_name, loc_name, loc_ref, unsigned_ref, seamark:name, sector:name, addr:housename, lock_name and in some cases distance and railway:position (see #9526)

#8707 and #8440 turned out to be controversial but I can't think of any reason why this change would be unwelcome (?)

modules/util/util.js Show resolved Hide resolved
['*', 'addr:housename', '*', 12],
['*', 'lock_name', '*', 12],
['*', 'distance', '*', 12],
['*', 'railway:position', '*', 12],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be limited to points? The railway:position documentation says this key can be used on any kind of feature, but it seems to be extremely rare on ways and relations, and all of the presets that use the Milestone Position field are for nodes only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, we could limit it to points, but also keep in mind that most of the geometry rules in this array have no effect, because of these 3 wildcard entries:

iD/modules/svg/labels.js

Lines 74 to 76 in 9cf0a20

['line', 'name', '*', 12],
['area', 'name', '*', 12],
['point', 'name', '*', 10]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants