Changeset 8543 in josm


Ignore:
Timestamp:
2015-06-30T14:17:26+02:00 (6 years ago)
Author:
wiktorn
Message:

Add appendix to supported layers message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r8542 r8543  
    1717import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
    1818import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
     19import org.openstreetmap.josm.Main;
    1920import org.openstreetmap.josm.data.imagery.CachedTileLoaderFactory;
    2021import org.openstreetmap.josm.data.imagery.ImageryInfo;
     
    134135        }
    135136        String appendix = "";
    136         if (supportedProjections.contains("EPSG:4326")) {
     137
     138        if (supportedProjections.contains("EPSG:4326") &&  "EPSG:3857".equals(Main.getProjection().toCode())) {
    137139            appendix = ". " + tr("JOSM will use EPSG:4326 to query the server, but results may vary "
    138140                    + "depending on the WMS server");
    139141        }
    140         return ret.substring(0, ret.length()-2);
     142        return ret.substring(0, ret.length()-2) + appendix;
    141143    }
    142144
Note: See TracChangeset for help on using the changeset viewer.