Changeset 8763 in josm
- Timestamp:
- 2015-09-17T19:39:11+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r8582 r8763 123 123 Set<String> supportedCrs = new HashSet<>(); 124 124 boolean first = true; 125 StringBuilder layersString = new StringBuilder(); 125 126 for (LayerDetails layer: tree.getSelectedLayers()) { 126 127 if (first) { … … 128 129 first = false; 129 130 } 131 layersString.append(layer.name); 132 layersString.append(", "); 130 133 supportedCrs.retainAll(layer.getProjections()); 131 134 } 135 132 136 ImageryInfo ret = new ImageryInfo(info.getName(), url, "wms", info.getEulaAcceptanceRequired(), info.getCookies()); 137 if (layersString.length() > 2) { 138 ret.setName(ret.getName() + " " + layersString.substring(0, layersString.length() - 2)); 139 } 133 140 ret.setServerProjections(supportedCrs); 134 141 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.