Changeset 8570 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2015-07-05T02:25:58+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r8568 r8570 276 276 277 277 private final class ShowTileInfoAction extends AbstractAction { 278 private transient finalTileHolder clickedTileHolder;278 private final transient TileHolder clickedTileHolder; 279 279 280 280 private ShowTileInfoAction(TileHolder clickedTileHolder) { -
trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.java
r8568 r8570 88 88 LatLon botLeft = mv.getLatLon(0, tileSource.getTileSize()); 89 89 90 return Math.abs((north.getLat() - south.getLat()) / ( 90 return Math.abs((north.getLat() - south.getLat()) / (topLeft.lat() - botLeft.lat())); 91 91 } 92 92 … … 95 95 if (!Main.isDisplayingMapView()) return 1; 96 96 97 for (int i=getMinZoomLvl(); i <= getMaxZoomLvl(); i++) {97 for (int i = getMinZoomLvl(); i <= getMaxZoomLvl(); i++) { 98 98 double ret = getTileToScreenRatio(i); 99 99 if (ret < 1) { … … 106 106 @Override 107 107 public boolean isProjectionSupported(Projection proj) { 108 return ((WMTSTileSource) tileSource).getSupportedProjections().contains(proj.toCode());108 return ((WMTSTileSource) tileSource).getSupportedProjections().contains(proj.toCode()); 109 109 } 110 110 … … 112 112 public String nameSupportedProjections() { 113 113 StringBuilder ret = new StringBuilder(); 114 for (String e: ((WMTSTileSource) tileSource).getSupportedProjections()) {114 for (String e: ((WMTSTileSource) tileSource).getSupportedProjections()) { 115 115 ret.append(e).append(", "); 116 116 } … … 121 121 public void projectionChanged(Projection oldValue, Projection newValue) { 122 122 super.projectionChanged(oldValue, newValue); 123 ((WMTSTileSource) tileSource).initProjection(newValue);123 ((WMTSTileSource) tileSource).initProjection(newValue); 124 124 } 125 126 125 } -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
r8568 r8570 29 29 registerValidableComponent(rawUrl); 30 30 } 31 31 32 @Override 32 33 protected ImageryInfo getImageryInfo() {
Note:
See TracChangeset
for help on using the changeset viewer.