Changeset 11167 in josm
- Timestamp:
- 2016-10-26T14:02:07+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11125 r11167 216 216 217 217 /** 218 * Creates and returns a new {@link TileSource} instance depending on {@link #info} specified in the constructor. 218 219 * 219 * @param info imagery info220 220 * @return TileSource for specified ImageryInfo 221 221 * @throws IllegalArgumentException when Imagery is not supported by layer 222 222 */ 223 protected abstract T getTileSource( ImageryInfo info);223 protected abstract T getTileSource(); 224 224 225 225 protected Map<String, String> getHeaders(T tileSource) { … … 679 679 private void initializeIfRequired() { 680 680 if (tileSource == null) { 681 tileSource = getTileSource( info);681 tileSource = getTileSource(); 682 682 if (tileSource == null) { 683 683 throw new IllegalArgumentException(tr("Failed to create tile source")); -
trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java
r10634 r11167 60 60 /** 61 61 * Creates and returns a new TileSource instance depending on the {@link ImageryType} 62 * of the passed ImageryInfo object.62 * of the {@link ImageryInfo} object specified in the constructor. 63 63 * 64 64 * If no appropriate TileSource is found, null is returned. … … 67 67 * 68 68 * 69 * @param info imagery info70 69 * @return a new TileSource instance or null if no TileSource for the ImageryInfo/ImageryType could be found. 71 70 * @throws IllegalArgumentException if url from imagery info is null or invalid 72 71 */ 73 72 @Override 74 protected TMSTileSource getTileSource( ImageryInfo info) {73 protected TMSTileSource getTileSource() { 75 74 return getTileSourceStatic(info, () -> { 76 75 Main.debug("Attribution loaded, running loadAllErrorTiles"); -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r11017 r11167 81 81 82 82 @Override 83 protected AbstractWMSTileSource getTileSource( ImageryInfo info) {83 protected AbstractWMSTileSource getTileSource() { 84 84 if (info.getImageryType() == ImageryType.WMS && info.getUrl() != null) { 85 85 TemplatedWMSTileSource.checkUrl(info.getUrl()); -
trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.java
r10568 r11167 52 52 53 53 @Override 54 protected WMTSTileSource getTileSource( ImageryInfo info) {54 protected WMTSTileSource getTileSource() { 55 55 try { 56 56 if (info.getImageryType() == ImageryType.WMTS && info.getUrl() != null) {
Note:
See TracChangeset
for help on using the changeset viewer.