Changeset 7567 in josm for trunk/src/org
- Timestamp:
- 2014-09-20T14:47:48+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r7563 r7567 10 10 import java.util.Map.Entry; 11 11 12 import org.openstreetmap.josm.Main; 12 13 import org.openstreetmap.josm.data.osm.Node; 13 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 142 143 * This method does multipolygon handling. 143 144 * 144 *145 145 * There are different tagging styles for multipolygons, that have to be respected: 146 146 * - tags on the relation 147 * - tags on the outer way 148 * - tags on both, the outer and the inner way (very old style) 147 * - tags on the outer way (deprecated) 149 148 * 150 149 * If the primitive is a way, look for multipolygon parents. In case it … … 159 158 * Now consider the case that the way is not an outer way of any multipolygon, 160 159 * but is member of a multipolygon as "inner". 161 * First, the style list is regenerated, considering only tags of this way 162 * minus the tags of outer way of the multipolygon (to care for the "very 163 * old style"). 160 * First, the style list is regenerated, considering only tags of this way. 164 161 * Then check, if the way describes something in its own right. (linear feature 165 162 * or area) If not, add a default line style from the area color of the multipolygon. … … 283 280 Pair<StyleList, Range> p = generateStyles(osm, scale, true); 284 281 if (drawMultipolygon && ((Relation)osm).isMultipolygon()) { 285 if (!Utils.exists(p.a, AreaElemStyle.class) ) {282 if (!Utils.exists(p.a, AreaElemStyle.class) && Main.pref.getBoolean("multipolygon.deprecated.outerstyle", true)) { 286 283 // look at outer ways to find area style 287 284 Multipolygon multipolygon = MultipolygonCache.getInstance().get(nc, (Relation) osm);
Note:
See TracChangeset
for help on using the changeset viewer.