- Timestamp:
- 2012-08-06T14:57:51+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r5206 r5399 282 282 * From these properties, it generates the different types of styles. 283 283 * 284 * @param osm the primitive to create styles for 285 * @param scale the scale (in meters per 100 px), must be > 0 284 286 * @param multipolyOuterWay support for a very old multipolygon tagging style 285 287 * where you add the tags both to the outer and the inner way. … … 288 290 * we pretend it is. This is useful for generating area styles from the (segmented) 289 291 * outer ways of a multipolygon. 292 * @return the generated styles and the valid range as a pair 290 293 */ 291 294 public Pair<StyleList, Range> generateStyles(OsmPrimitive osm, double scale, OsmPrimitive multipolyOuterWay, boolean pretendWayIsClosed) { … … 335 338 } 336 339 } 337 338 340 return new Pair<StyleList, Range>(new StyleList(sl), mc.range); 339 341 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r5383 r5399 132 132 Node virtualNode = new Node(); 133 133 virtualNode.put(tag.getKey(), tag.getValue()); 134 StyleList styleList = getStyles().generateStyles(virtualNode, 0 , null, false).a;134 StyleList styleList = getStyles().generateStyles(virtualNode, 0.5, null, false).a; 135 135 if (styleList != null) { 136 136 for (Iterator<ElemStyle> it = styleList.iterator(); it.hasNext(); ) {
Note:
See TracChangeset
for help on using the changeset viewer.