Opened 7 years ago

Last modified 5 years ago

#16192 closed enhancement

Settings sorted — at Version 4

Reported by: wulfmorn Owned by: team
Priority: normal Milestone: 18.05
Component: Core mappaint Version:
Keywords: sort settings Cc:

Description (last modified by Klumbumbus)

Hello

I have created a number of settings for my mapcss but I cant find a way to sort them in the list.

The list of settings when shown in JOSM is neither alphabetical or same order as listed in the mapcss file. Is there a setting in mapcss I dont know about or is it straight up weakness of JOSM?

screenshot of josm using the style

Change History (6)

comment:1 by Don-vip, 7 years ago

Owner: changed from team to wulfmorn
Status: newneedinfo

Can you please post your style and a screenshot? Thanks.

comment:2 by wulfmorn, 7 years ago

Ok, im hoping im not making a fool out of myself here but as far as i can tell:

The setting name seems to have an influence on the ordering and stays alphabetical as long as the setting and label has only one character. So settings A-C end up in A-C order. If i reverse order of setting names, but keep label names, the label names end up in reverse order in the UI. If i start adding longer names to the style names the order becomes very chaotic.

To make test easier i made a simple test-style. Attaching now.

by wulfmorn, 7 years ago

screenshot of josm using the style

by wulfmorn, 7 years ago

Attachment: style-with-settings.mapcss added

mapcss with style used in the screenshot

comment:3 by Klumbumbus, 7 years ago

Owner: changed from wulfmorn to team
Status: needinfonew

comment:4 by Klumbumbus, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.