Opened 10 years ago

Last modified 8 years ago

#10215 new defect

MapCSS: make class selectors work for parent/child selectors

Reported by: simon04 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: mapcss Cc: lists@…, naoliv


Make the snipped from ticket:10120#comment:1 work. The difficulty is to determine the class water_area for the second primitive. Currently the matching process is as follows:

Consider as an example a dataset containing landuse=reservoir X=1 and landuse=reservoir Y=1 which overlap. When performing the matching process …

  1. MapCSS Environment is set empty.
  2. landuse=reservoir X=1 matches first rule rule. water_area is set in environment.
  3. All possible crossing primitives are tested with an empty Environment (since the Environment associated to landuse=reservoir X=1 cannot be used)
  4. landuse=reservoir Y=1 doesn't match the selector area:closed:areaStyle.water_area since water_area isn't set in the environment

Attachments (0)

Change History (5)

comment:1 by simon04, 10 years ago

In 7280/josm:

fix #10120 see #10215 - Validator: do not warn "Overlapping Water Areas" for overlaps of water areas with normal areas

comment:2 by Aun Johnsen <lists@…>, 10 years ago

Cc: lists@… added

comment:3 by simon04, 9 years ago

Ticket #11523 has been marked as a duplicate of this ticket.

The example from ticket:11523#comment:description

way[highway] > node { set .is_in_highway; }

node.is_in_highway < area[!highway] {
        throwWarning: tr("you should not attach the area to the highway");
Last edited 9 years ago by simon04 (previous) (diff)

comment:4 by naoliv, 9 years ago

Cc: naoliv added

comment:5 by anonymous, 8 years ago

Is it possible to target crossing ways with mapCSS?

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to simon04.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment

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