Changeset 9825 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-02-18T21:41:08+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r9818 r9825 47 47 import org.openstreetmap.josm.data.projection.Projections; 48 48 import org.openstreetmap.josm.gui.ExtendedDialog; 49 import org.openstreetmap.josm.gui.layer.NativeScaleLayer.Scale;50 49 import org.openstreetmap.josm.gui.layer.NativeScaleLayer.ScaleList; 51 50 import org.openstreetmap.josm.io.CachedFile; … … 246 245 private TransferMode transferMode; 247 246 247 private ScaleList nativeScaleList; 248 248 249 /** 249 250 * Creates a tile source based on imagery info … … 631 632 632 633 this.crsScale = getTileSize() * 0.28e-03 / proj.getMetersPerUnit(); 634 635 Collection<Double> scales = new ArrayList<>(currentTileMatrixSet.tileMatrix.size()); 636 if (currentTileMatrixSet != null) { 637 for (TileMatrix tileMatrix : currentTileMatrixSet.tileMatrix) { 638 scales.add(tileMatrix.scaleDenominator * 0.28e-03); 639 } 640 } 641 this.nativeScaleList = new ScaleList(scales); 633 642 } 634 643 … … 919 928 */ 920 929 public ScaleList getNativeScales() { 921 ScaleList scales = new ScaleList(); 922 if (currentTileMatrixSet != null) { 923 for (TileMatrix tileMatrix : currentTileMatrixSet.tileMatrix) { 924 scales.add(new Scale(tileMatrix.scaleDenominator * 0.28e-03)); 925 } 926 } 927 return scales; 930 return nativeScaleList; 928 931 } 929 932
Note:
See TracChangeset
for help on using the changeset viewer.