Changeset 8571 in josm
- Timestamp:
- 2015-07-05T02:55:10+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r8570 r8571 73 73 }; 74 74 75 private class TileMatrix {75 private static class TileMatrix { 76 76 String identifier; 77 77 double scaleDenominator; … … 81 81 } 82 82 83 private class TileMatrixSet {83 private static class TileMatrixSet { 84 84 SortedSet<TileMatrix> tileMatrix = new TreeSet<>(new Comparator<TileMatrix>() { 85 85 @Override … … 93 93 } 94 94 95 private class Layer {95 private static class Layer { 96 96 String format; 97 97 String name; … … 124 124 } 125 125 126 private final class SelectLayerDialog extends ExtendedDialog {126 private static final class SelectLayerDialog extends ExtendedDialog { 127 127 private Layer[] layers; 128 128 private JList<String> list; … … 207 207 builderFactory.setNamespaceAware(false); 208 208 DocumentBuilder builder = null; 209 byte[] data = {};210 209 InputStream in = new CachedFile(baseUrl). 211 210 setHttpHeaders(headers). … … 215 214 try { 216 215 builder = builderFactory.newDocumentBuilder(); 217 data = Utils.readBytesFromStream(in);216 byte[] data = Utils.readBytesFromStream(in); 218 217 if (data == null || data.length == 0) { 219 218 throw new IllegalArgumentException("Could not read data from: " + baseUrl); -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r8570 r8571 1014 1014 g.drawLine(0, p.y, mv.getWidth(), p.y); 1015 1015 } 1016 yCursor = t.getYtile(); 1017 } 1018 // This draws the vertical lines for the entire 1019 // column. Only draw them for the top tile in 1020 // the column. 1016 //yCursor = t.getYtile(); 1017 } 1018 // This draws the vertical lines for the entire column. Only draw them for the top tile in the column. 1021 1019 if (xCursor < t.getXtile()) { 1022 1020 if (t.getXtile() % 32 == 0) { … … 1026 1024 g.drawLine(p.x, 0, p.x, mv.getHeight()); 1027 1025 } 1028 xCursor = t.getXtile();1026 //xCursor = t.getXtile(); 1029 1027 } 1030 1028 }
Note:
See TracChangeset
for help on using the changeset viewer.