Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r12550 r12620 58 58 import org.openstreetmap.josm.tools.CheckParameterUtil; 59 59 import org.openstreetmap.josm.tools.GBC; 60 import org.openstreetmap.josm.tools.Logging; 60 61 import org.openstreetmap.josm.tools.Utils; 61 62 … … 293 294 this.layers = getCapabilities(); 294 295 if (info.getDefaultLayers().isEmpty()) { 295 Main.warn(tr("No default layer selected, choosing first layer."));296 Logging.warn(tr("No default layer selected, choosing first layer.")); 296 297 if (!layers.isEmpty()) { 297 298 Layer first = layers.iterator().next(); … … 383 384 } catch (XMLStreamException e) { 384 385 cf.clear(); 385 Main.warn(new String(data, StandardCharsets.UTF_8));386 Logging.warn(new String(data, StandardCharsets.UTF_8)); 386 387 throw new IllegalArgumentException(e); 387 388 } … … 491 492 if (layer.format == null) { 492 493 // no format found - it's mandatory parameter - can't use this layer 493 Main.warn(tr("Can''t use layer {0} because no supported formats where found. Layer is available in formats: {1}",494 Logging.warn(tr("Can''t use layer {0} because no supported formats where found. Layer is available in formats: {1}", 494 495 layer.getUserTitle(), 495 496 String.join(", ", unsupportedFormats))); … … 725 726 } 726 727 // if no layers is found, fallback to default mercator tile size. Maybe it will work 727 Main.warn("WMTS: Could not determine tile size. Using default tile size of: {0}", getDefaultTileSize());728 Logging.warn("WMTS: Could not determine tile size. Using default tile size of: {0}", getDefaultTileSize()); 728 729 return getDefaultTileSize(); 729 730 }
Note:
See TracChangeset
for help on using the changeset viewer.