- Timestamp:
- 2018-03-07T20:52:38+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r13439 r13510 102 102 PATTERN_HEADER, 103 103 }; 104 105 private int cachedTileSize = -1; 104 106 105 107 private static class TileMatrix { … … 733 735 @Override 734 736 public int getTileSize() { 737 if (cachedTileSize > 0) { 738 return cachedTileSize; 739 } 735 740 if (tileProjection != null) { 736 741 // no support for non-square tiles (tileHeight != tileWidth) … … 738 743 Collection<Layer> projLayers = getLayers(null, tileProjection.toCode()); 739 744 if (!projLayers.isEmpty()) { 740 return projLayers.iterator().next().tileMatrixSet.tileMatrix.get(0).tileHeight; 745 cachedTileSize = projLayers.iterator().next().tileMatrixSet.tileMatrix.get(0).tileHeight; 746 return cachedTileSize; 741 747 } 742 748 }
Note:
See TracChangeset
for help on using the changeset viewer.