Changeset 11842 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-04-05T11:53:38+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11841 r11842 1190 1190 } 1191 1191 1192 private void paintTileText(Tile Set ts, Tile tile, Graphics g, MapView mv, int zoom, Tile t) {1192 private void paintTileText(Tile tile, Graphics g, MapView mv) { 1193 1193 if (tile == null) { 1194 1194 return; 1195 1195 } 1196 Point2D p = coordinateConverter.getPixelForTile(t );1196 Point2D p = coordinateConverter.getPixelForTile(tile); 1197 1197 int fontHeight = g.getFontMetrics().getHeight(); 1198 1198 int x = (int) p.getX(); … … 1223 1223 int yCursor = -1; 1224 1224 if (Main.isDebugEnabled()) { 1225 if (yCursor < t .getYtile()) {1226 if (Math.abs(t .getYtile() % 32) == 31) {1225 if (yCursor < tile.getYtile()) { 1226 if (Math.abs(tile.getYtile() % 32) == 31) { 1227 1227 g.fillRect(0, y - 1, mv.getWidth(), 3); 1228 1228 } else { … … 1232 1232 } 1233 1233 // This draws the vertical lines for the entire column. Only draw them for the top tile in the column. 1234 if (xCursor < t .getXtile()) {1235 if (t .getXtile() % 32 == 0) {1234 if (xCursor < tile.getXtile()) { 1235 if (tile.getXtile() % 32 == 0) { 1236 1236 // level 7 tile boundary 1237 1237 g.fillRect(x - 1, 0, 3, mv.getHeight()); … … 1610 1610 // The current zoom tileset should have all of its tiles due to the loadAllTiles(), unless it to tooLarge() 1611 1611 for (Tile t : ts.allExistingTiles()) { 1612 this.paintTileText(t s, t, g, mv, displayZoomLevel, t);1612 this.paintTileText(t, g, mv); 1613 1613 } 1614 1614
Note:
See TracChangeset
for help on using the changeset viewer.