Modify

Opened 5 years ago

Last modified 3 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

Description

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 Changed 5 years ago by simon04

In 7280/josm:

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

comment:2 Changed 5 years ago by Aun Johnsen <lists@…>

Cc: lists@… added

comment:3 Changed 4 years ago by simon04

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 4 years ago by simon04 (previous) (diff)

comment:4 Changed 4 years ago by naoliv

Cc: naoliv added

comment:5 Changed 3 years ago by anonymous

Is it possible to target crossing ways with mapCSS?

Modify Ticket

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

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.