- Timestamp:
- 2014-05-21T23:02:28+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r7138 r7161 58 58 public final List<MapCSSRule> rules = new ArrayList<>(); 59 59 // rule indices, filtered by primitive type 60 public final MapCSSRuleIndex nodeRules = new MapCSSRuleIndex(); 61 public final MapCSSRuleIndex wayRules = new MapCSSRuleIndex(); 62 public final MapCSSRuleIndex relationRules = new MapCSSRuleIndex(); 63 public final MapCSSRuleIndex multipolygonRules = new MapCSSRuleIndex(); 64 public final MapCSSRuleIndex canvasRules = new MapCSSRuleIndex(); 60 public final MapCSSRuleIndex nodeRules = new MapCSSRuleIndex(); // nodes 61 public final MapCSSRuleIndex wayRules = new MapCSSRuleIndex(); // ways without tag area=no 62 public final MapCSSRuleIndex wayNoAreaRules = new MapCSSRuleIndex(); // ways with tag area=no 63 public final MapCSSRuleIndex relationRules = new MapCSSRuleIndex(); // relations that are not multipolygon relations 64 public final MapCSSRuleIndex multipolygonRules = new MapCSSRuleIndex(); // multipolygon relations 65 public final MapCSSRuleIndex canvasRules = new MapCSSRuleIndex(); // rules to apply canvas properties 65 66 66 67 private Color backgroundColorOverride; … … 184 185 nodeRules.clear(); 185 186 wayRules.clear(); 187 wayNoAreaRules.clear(); 186 188 relationRules.clear(); 187 189 multipolygonRules.clear(); … … 230 232 break; 231 233 case "way": 234 wayNoAreaRules.add(optRule); 232 235 wayRules.add(optRule); 233 236 break; … … 243 246 nodeRules.add(optRule); 244 247 wayRules.add(optRule); 248 wayNoAreaRules.add(optRule); 245 249 relationRules.add(optRule); 246 250 multipolygonRules.add(optRule); … … 260 264 nodeRules.initIndex(); 261 265 wayRules.initIndex(); 266 wayNoAreaRules.initIndex(); 262 267 relationRules.initIndex(); 263 268 multipolygonRules.initIndex(); … … 359 364 matchingRuleIndex = nodeRules; 360 365 } else if (osm instanceof Way) { 361 matchingRuleIndex = wayRules; 366 if (osm.isKeyFalse("area")) { 367 matchingRuleIndex = wayNoAreaRules; 368 } else { 369 matchingRuleIndex = wayRules; 370 } 362 371 } else { 363 372 if (((Relation) osm).isMultipolygon()) {
Note:
See TracChangeset
for help on using the changeset viewer.