Opened 2 years ago

Last modified 2 years ago

#23229 new enhancement

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

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

Description (last modified by pierzen)

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 (1)

comment:1 by pierzen, 2 years ago

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