Changeset 11761 in josm
- Timestamp:
- 2017-03-21T15:47:29+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r11759 r11761 74 74 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource; 75 75 import org.openstreetmap.josm.gui.mappaint.styleelement.AreaElement; 76 import org.openstreetmap.josm.gui.mappaint.styleelement.AreaIconElement; 76 77 import org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement; 77 78 import org.openstreetmap.josm.gui.mappaint.styleelement.BoxTextElement.HorizontalTextAlignment; … … 1133 1134 MapViewPath path = new MapViewPath(mapState); 1134 1135 path.appendFromEastNorth(pd.get()); 1136 path.setWindingRule(MapViewPath.WIND_EVEN_ODD); 1135 1137 consumer.accept(path); 1136 1138 } … … 1602 1604 StyleElementList sl = styles.get(osm, circum, nc); 1603 1605 for (StyleElement s : sl) { 1604 if (drawMultipolygon && drawArea && s instanceof AreaElement&& (flags & FLAG_DISABLED) == 0) {1606 if (drawMultipolygon && drawArea && (s instanceof AreaElement || s instanceof AreaIconElement) && (flags & FLAG_DISABLED) == 0) { 1605 1607 output.add(new StyleRecord(s, osm, flags)); 1606 1608 } else if (drawMultipolygon && drawArea && s instanceof TextElement) { … … 1615 1617 StyleElementList sl = styles.get(osm, circum, nc); 1616 1618 for (StyleElement s : sl) { 1617 if (!(drawArea && (flags & FLAG_DISABLED) == 0) && s instanceof AreaElement) { 1618 continue; 1619 } 1620 output.add(new StyleRecord(s, osm, flags)); 1619 if ((drawArea && (flags & FLAG_DISABLED) == 0) || !(s instanceof AreaElement)) { 1620 output.add(new StyleRecord(s, osm, flags)); 1621 } 1621 1622 } 1622 1623 }
Note:
See TracChangeset
for help on using the changeset viewer.