Changeset 13542 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
- Timestamp:
- 2018-03-19T00:10:50+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r13539 r13542 712 712 } 713 713 714 /**715 *716 * @param searchLayer which layer do we look for717 * @param projectionCode projection code to match718 * @return Collection of layers matching the name of the layer and projection, or only projection if name is not provided719 */720 private Collection<Layer> getLayers(WMTSDefaultLayer searchLayer, String projectionCode) {721 Collection<Layer> ret = new ArrayList<>();722 if (this.layers != null) {723 for (Layer layer: this.layers) {724 if ((searchLayer == null || (// if it's null, then accept all layers725 searchLayer.getLayerName().equals(layer.identifier)))726 && (projectionCode == null || // if it's null, then accept any projection727 projectionCode.equals(layer.tileMatrixSet.crs))) {728 ret.add(layer);729 }730 }731 }732 return ret;733 }734 735 714 @Override 736 715 public int getTileSize() {
Note:
See TracChangeset
for help on using the changeset viewer.