#9576 closed enhancement (fixed)
"unconnected" pseudo class in MapCSS
| Reported by: | naoliv | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 14.01 |
| Component: | Core validator | Version: | |
| Keywords: | Cc: |
Description
Could JOSM also have an :unconnected pseudo class (http://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#PseudoClasses) for nodes that aren't used by any ways?
Attachments (0)
Change History (5)
comment:1 by , 12 years ago
| Milestone: | → 14.01 |
|---|
follow-up: 4 comment:2 by , 12 years ago
To exemplify my request, I am trying to find nodes tagged as traffic_calming=* or highway=(crossing|speed_camera|traffic_signals) that aren't connected to ways.
comment:4 by , 12 years ago
Replying to naoliv:
To exemplify my request, I am trying to find nodes tagged as traffic_calming=* or highway=(crossing|speed_camera|traffic_signals) that aren't connected to ways.
Hi, could you then paste the rules here so we could use it too? I'd be interested in such a test too and I am new to this mapcss stuff yet.
comment:5 by , 12 years ago
My local test has this:
node:unconnected[power = pole], node:unconnected[power = tower], node:unconnected[traffic_calming], node:unconnected[highway = mini_roundabout], node:unconnected[highway = motorway_junction], node:unconnected[highway = stop], node:unconnected[highway = giveway], node:unconnected[highway = turning_circle], node:unconnected[highway = crossing], node:unconnected[highway = speed_camera], node:unconnected[highway = traffic_signals] { throwWarning: tr("{0} must be connected to a way", "{1.tag}"); }



sounds a good idea :)