Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21426 closed enhancement (fixed)

[Patch] Add preset "layer" to preset "railway"

Reported by: tomasmarklund Owned by: team
Priority: normal Milestone: 21.10
Component: Internal preset Version:
Keywords: railway layer Cc:

Description

Add preset "layer" to "railway" preset dialog, in the same way as "layer" is available in all the highway preset dialogs.

It would increase speed and quality if both "bridge" tickbox and "layer" dropdown were available in the railway preset. Now, only the bridge tickbox is available, and the layer tag needs to either be added manually, or by opening the "bridge" preset after closing the railway preset.

Attachments (1)

josm_21426.patch (7.2 KB ) - added by skyper 3 years ago.
patch

Download all attachments as: .zip

Change History (11)

comment:1 by skyper, 3 years ago

+1, makes perfectly sense to always offer layer=* with bridge=* and/or tunnel=*

comment:2 by skyper, 3 years ago

Another option would be replacing the checks for tunnel and bridge with preset_links to Tunnel resp. Bridge preset for all *ways. These links can be placed everywhere in the preset and not only on the bottom but they use quite a lot of space as one occupies a complete row.

by skyper, 3 years ago

Attachment: josm_21426.patch added

patch

comment:3 by skyper, 3 years ago

Keywords: railway layer added
Milestone: 21.10
Summary: Add preset "layer" to preset "railway"[Patch] Add preset "layer" to preset "railway"

Find attached patch:

  • adds layer=* to railways and man_made=conveyor
  • adds bridge subtags to man_made=bridge and type=bridge
  • adds default layer value to some bridge and tunnel presets

On the fly I fixed indention of one preset.

comment:4 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18279/josm:

fix #21426 - Add preset "layer" to preset "railway" (patch by skyper)

  • adds layer=* to railways and man_made=conveyor
  • adds bridge subtags to man_made=bridge and type=bridge
  • adds default layer value to some bridge and tunnel presets

comment:5 by Famlam, 3 years ago

layer=0 (added to the presets) would result in unnecessary tag warnings
https://josm.openstreetmap.de/browser/josm/trunk/resources/data/validator/unnecessary.mapcss#L5

Maybe the patch should only suggest to add 5,4,3,2,1,-1,-2,-3,-4,-5?

comment:6 by skyper, 3 years ago

Well, again, I just copied the layer combo but you are right that it is strange to first offer the value and than warn about it. New ticket?

in reply to:  6 comment:7 by Famlam, 3 years ago

Replying to skyper:

Well, again, I just copied the layer combo but you are right that it is strange to first offer the value and than warn about it. New ticket?

Done #21447

comment:8 by riiga_92@…, 3 years ago

It seems layer=-1 is being set by default for the "Bridge outline" preset. Looks like a copy-paste error, should probably be changed to layer=1.

Line 6182 in [18279].

in reply to:  8 comment:9 by skyper, 3 years ago

Replying to riiga_92@…:

It seems layer=-1 is being set by default for the "Bridge outline" preset. Looks like a copy-paste error, should probably be changed to layer=1.

Line 6182 in [18279].

Yes, of course, see #21610

comment:10 by Klumbumbus, 3 years ago

In 18326/josm:

fix #21447, fix #21610, see #21426 - remove layer=0 from presets and fix default layer=-1 to layer=1 for man_made=bridge (patch by skyper)

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.