Modify

Opened 3 years ago

Last modified 3 years ago

#15590 new enhancement

The default style should differ name and ref

Reported by: naoliv Owned by: team
Priority: normal Milestone:
Component: Internal mappaint style Version:
Keywords: Cc:

Description

One way has ref=LMG-654;CMG-251 and the other one name=LMG-654;CMG-251 but we can't see any difference:

https://i.imgur.com/KemEx5S.png

If possible, we should display them with a different style (so we could differ if what we see is ref and/or name)

JOSM:

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-11-23 22:10:26 +0100 (Thu, 23 Nov 2017)
Revision:13154
Build-Date:2017-11-24 02:32:27
URL:http://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (13154 pt_BR) Linux Debian GNU/Linux testing (buster)
Memory Usage: 1053 MB / 7168 MB (305 MB allocated, but free)
Java version: 9.0.1+11-Debian-1, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900, :0.1 1280x1024
Maximum Screen Size: 1600x1024
Java package: openjdk-9-jre:amd64-9.0.1+11-1
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [--add-modules=java.activation,java.se.ee, -Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Klumbumbus

Do you have an idea how to differ them?

comment:2 Changed 3 years ago by naoliv

Shields (#7151) would be nice for ref.

But since we don't have it, is it possible to:

1) have the text background with a different color? (for ref)
2) use italic or bold for ref?
3) display ref with square brackets?
4) invert the colors if we have name or ref? (name = black text-color + halo with color (as it is now); ref = color in text + black in halo)

And ideas/doubts when both name and ref are tagged:

5) can we concatenate texts with different properties?
6) vertically displace the text if we have both ref and name? (ref on top, name below, both centered)
7) concatenate [ref] name? (with square brackets in ref, or something like this)

Last edited 3 years ago by naoliv (previous) (diff)

comment:3 Changed 3 years ago by Klumbumbus

  • different font styles make the text harder to read at the small text sizes
  • using mixed texts (like [ref] name) would override our auto text feature (advanced preference key mappaint.nameOrder)
  • if then it should be universal, not only for highway name vs. ref.

So I think this highly depends on the individual taste of the user if and how he wants to display texts and I can't really find a proper universal solution for the default style. Users can adjust the display by an individual mappaint style. Here are some code snippets for possible solutions:

*[!name] {
    font-weight: bold;
}


*[!name] {
    font-style: italic;
}


*[!name] {
    text-color: non_name#d9ad00;
}


*[ref][!name] {
    text: concat("[", tag(ref),"]")
}


*[ref][name] {
    text: concat("[", tag(ref),"] ", tag(name))
}

Also I don't know about the performance of the style with a rule like *[!name] as this applies to nearly every object including all those untagged waynodes.

It's a wontfix ticket for me.

comment:4 in reply to:  3 Changed 3 years ago by Klumbumbus

Replying to Klumbumbus:

the individual taste of the user

(I for example permanently disabled the street names display in the default style via the style settings as this is too much useless clutter for my taste. When I work with adresses or street names I use the style Coloured Streets.)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to naoliv
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.