Changeset 12550 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
- Timestamp:
- 2017-08-01T00:59:21+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r12279 r12550 684 684 } // else: keep currentLayer and tileProjection as is 685 685 } 686 this.currentTileMatrixSet = this.currentLayer.tileMatrixSet; 687 Collection<Double> scales = new ArrayList<>(currentTileMatrixSet.tileMatrix.size()); 688 for (TileMatrix tileMatrix : currentTileMatrixSet.tileMatrix) { 689 scales.add(tileMatrix.scaleDenominator * 0.28e-03); 690 } 691 this.nativeScaleList = new ScaleList(scales); 686 if (this.currentLayer != null) { 687 this.currentTileMatrixSet = this.currentLayer.tileMatrixSet; 688 Collection<Double> scales = new ArrayList<>(currentTileMatrixSet.tileMatrix.size()); 689 for (TileMatrix tileMatrix : currentTileMatrixSet.tileMatrix) { 690 scales.add(tileMatrix.scaleDenominator * 0.28e-03); 691 } 692 this.nativeScaleList = new ScaleList(scales); 693 } 692 694 this.crsScale = getTileSize() * 0.28e-03 / this.tileProjection.getMetersPerUnit(); 693 695 }
Note:
See TracChangeset
for help on using the changeset viewer.