Modify

Opened 3 months ago

Closed 2 months ago

#16192 closed enhancement (fixed)

Settings sorted

Reported by: wulfmorn Owned by: team
Priority: normal Milestone: 18.05
Component: Core mappaint Version:
Keywords: sort 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

Attachments (2)

josm-stylesettings-order.PNG (21.4 KB) - added by wulfmorn 3 months ago.
screenshot of josm using the style
style-with-settings.mapcss (1.3 KB) - added by wulfmorn 3 months ago.
mapcss with style used in the screenshot

Download all attachments as: .zip

Change History (9)

comment:1 Changed 3 months ago by Don-vip

Owner: changed from team to wulfmorn
Status: newneedinfo

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

comment:2 Changed 3 months ago by wulfmorn

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.

Changed 3 months ago by wulfmorn

screenshot of josm using the style

Changed 3 months ago by wulfmorn

Attachment: style-with-settings.mapcss added

mapcss with style used in the screenshot

comment:3 Changed 3 months ago by Klumbumbus

Owner: changed from wulfmorn to team
Status: needinfonew

comment:4 Changed 3 months ago by Klumbumbus

Description: modified (diff)

comment:5 Changed 2 months ago by Don-vip

Component: CoreCore mappaint
Keywords: sort added

comment:6 Changed 2 months ago by Don-vip

Milestone: 18.05

comment:7 Changed 2 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 13800/josm:

fix #16192 - sort map paint style settings by label

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.