Changeset 9076 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2015-12-01T00:17:33+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
r9071 r9076 117 117 unclosedAreaHighlight = Main.pref.getBoolean("draw.unclosed_area_partial_fill_highlight", false); 118 118 unclosedAreaHighlightWidth = Main.pref.getDouble("draw.unclosed_area_partial_fill_highlight.width", 80); 119 partialFillThreshold = Main.pref.getDouble("draw.area.partial_fill_threshold", 50);119 partialFillThreshold = Main.pref.getDouble("draw.area.partial_fill_threshold", 70); 120 120 } 121 121 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r9075 r9076 288 288 289 289 private double circum; 290 private double scale; 290 291 291 292 private MapPaintSettings paintSettings; … … 630 631 AreaAndPerimeter ap = pd.getAreaAndPerimeter(); 631 632 // if partial fill would only leave a small gap in the center ... 632 if (ap.getPerimeter() * extent * circum / 100> partialFillThreshold / 100 * ap.getArea()) {633 if (ap.getPerimeter() * extent * scale > partialFillThreshold / 100 * ap.getArea()) { 633 634 // ... turn it off and fill completely 634 635 extent = null; … … 660 661 AreaAndPerimeter ap = Geometry.getAreaAndPerimeter(w.getNodes()); 661 662 // if partial fill would only leave a small gap in the center ... 662 if (ap.getPerimeter() * extent * circum / 100> partialFillThreshold / 100 * ap.getArea()) {663 if (ap.getPerimeter() * extent * scale > partialFillThreshold / 100 * ap.getArea()) { 663 664 // ... turn it off and fill completely 664 665 extent = null; … … 1513 1514 1514 1515 circum = nc.getDist100Pixel(); 1516 scale = nc.getScale(); 1515 1517 1516 1518 leftHandTraffic = Main.pref.getBoolean("mappaint.lefthandtraffic", false);
Note:
See TracChangeset
for help on using the changeset viewer.