Opened 2 years ago

Last modified 2 years ago

#23229 new enhancement

JOSM-mapcss does not return nodes from nested relation, way, node child selectors — at Version 3

Reported by: pierzen Owned by: pierzen
Priority: normal Milestone:
Component: Core Version:
Keywords: mapcss parent child selector Cc:

Description (last modified by gaben)

Trying to select both ways and nodes from a relation, ways are selected and colored apporpriately but selector for nodes from the ways do not select and color the nodes part of these ways.

The example below shows the mapcss to reproduce the problem. The part 1 selects successfully all ways from a [natural=water] relation. But the second section returns no nodes, this with no error message.

  1. way child selector from relation - works fine
    relation[type=multipolygon][natural=water] > way::lnatural_way, area[natural] > way::lnatural_way
    {
       set .natural_way; z-index:50;
       color: red;  width: 2; opacity:1;
    }

  1. way child selector from ways selected - returns nothing - no error reported
    way.natural_way > node  
    {
       set .natural_water_way_node;
       symbol-shape:pentagon;  symbol-size:46; symbol-stroke-color:black; 
       symbol-stroke-width:2; symbol-stroke-opacity:1;
       symbol-fill-color:red; symbol-fill-opacity:1;
    }

Change History (7)

comment:1 by pierzen, 2 years ago

Description: modified (diff)

comment:2 by pierzen, 2 years ago

Summary: JOSM-mapcss does not return nodes from nested relation, way, child selectorsJOSM-mapcss does not return nodes from nested relation, way, node child selectors

comment:3 by gaben, 2 years ago

Description: modified (diff)
Owner: changed from team to pierzen
Status: newneedinfo

Thanks for your report, however your ticket is incomplete and therefore not helpful in its current form.

Please add all needed information according to this list:

  • The required parts of the Status Report from your JOSM.
  • Describe what behaviour you expected.
  • Describe what did happen instead.
  • Describe if and how the issue is reproducible.
  • Add any relevant information like error messages or screenshots.

To ensure that all technical relevant information is contained, create new tickets by clicking in JOSMs Main Menu on Helpsource:trunk/resources/images/bug.svg Report Bug.

Remember: This is a generic notice so we don't need to write the same stuff again and again. It may only apply in parts to the specific case!



Please attach the status report.

by pierzen, 2 years ago

Note: See TracTickets for help on using tickets.