#10184 closed defect (fixed)
MapCSS changes did break lane attribute style destination and destination:ref
Reported by: | Klumbumbus | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | External mappaint style | Version: | |
Keywords: | lane and road attributes | Cc: | imagic |
Description
The fix in ticket #10142 worked fine, but there is one more error.
In JOSM latest 7257 destination and destination:ref on ways is not shown. (works in JOSM tested 7182)
Example see way/23358710
Attachments (0)
Change History (8)
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
comment:3 by , 11 years ago
Yes, I just noticed, that this could be related to @7200, and mappaint style needs update
comment:4 by , 11 years ago
Just a short note: I'm on holiday so I will try to fix this in the style next week (or on a rainy day). I'm happy the problem causing those "way{}" has been identified. And one side note: I was under the impression that prop(..) with one argument always refers to the default layer, at least that was the way I used it in the style.
comment:5 by , 11 years ago
Inside the declaration block, it always referred to the current layer. (You write e.g. prop(lanes_bwd,"default")
to account for this.) For consistency it should be the same inside the selector.
comment:6 by , 10 years ago
I fixed the style today and also updated the JOSM mapccs documentation. I would be happy if someone could provide feedback if all issues are fixed or others have arisen. (Don't forget to clear your JOSM cache before trying to use the new style).
comment:7 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I checked the style. I couldn't find any problems.
comment:8 by , 10 years ago
Component: | Core mappaint → External mappaint style |
---|---|
Resolution: | invalid → fixed |
The style was adapted to proper syntax (diff).
This is due to how the lane style worked around a MapCSS bug which was fixed in [7200]:
prop
function: With one and with two arguments. The one with one argument is a shortcut, when the layer equals the layer of the current selector.This is how it works at the moment.
way{}
before, fixed the problem.)This means the Lane style needs to be adapted, change
to
I would recommend to keep the hack with
way{}
in for a couple of months, so it also works for users with older JOSM versions. (Either that or update the min version at the top to 7200)