Changeset 11831 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-04-03T17:52:40+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11829 r11831 1161 1161 1162 1162 Rectangle2D sourceRect = coordinateConverter.getRectangleForTile(tile); 1163 if (!sourceRect.intersects(borderRect)) { 1163 Rectangle2D clipRect; 1164 if (tileSource.isInside(tile, border)) { 1165 clipRect = null; 1166 } else if (tileSource.isInside(border, tile)) { 1167 clipRect = borderRect; 1168 } else { 1164 1169 continue; 1165 1170 } 1166 drawImageInside(g, img, sourceRect, borderRect);1171 drawImageInside(g, img, sourceRect, clipRect); 1167 1172 } 1168 1173 return missedTiles; … … 1271 1276 } 1272 1277 1278 protected TileSet(TileRange range) { 1279 super(range); 1280 sanitize(); 1281 } 1282 1273 1283 /** 1274 1284 * null tile set … … 1590 1600 continue; 1591 1601 } 1592 Tile t2 = tempCornerTile(missed); 1593 TileSet ts2 = getTileSet(getShiftedLatLon(tileSource.tileXYToLatLon(missed)), 1594 getShiftedLatLon(tileSource.tileXYToLatLon(t2)), newzoom); 1602 TileSet ts2 = new TileSet(tileSource.getCoveringTileRange(missed, newzoom)); 1595 1603 // Instantiating large TileSets is expensive. If there are no loaded tiles, don't bother even trying. 1596 1604 if (ts2.allLoadedTiles().isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.