Changeset 12709 in josm


Ignore:
Timestamp:
2017-09-01T19:12:57+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15216 - choose first compatible wmts layer in case several are found, instead of null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r12669 r12709  
    661661            this.currentLayer = matchingLayers.stream().filter(
    662662                    l -> l.tileMatrixSet.identifier.equals(defaultLayer.getTileMatrixSet()))
    663                     .findFirst().orElse(null);
     663                    .findFirst().orElse(matchingLayers.get(0));
    664664            this.tileProjection = proj;
    665665        } else if (matchingLayers.size() == 1) {
Note: See TracChangeset for help on using the changeset viewer.