Ignore:
Timestamp:
2011-09-07T23:54:08+02:00 (14 years ago)
Author:
simon04
Message:

fix #6740 - prefix imagery layer by country code

File:
1 edited

Legend:

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

    r4240 r4405  
    5858    private String attributionLinkURL;
    5959    private String termsOfUseURL;
     60    private String countryCode = "";
    6061
    6162    public ImageryInfo() {
     
    166167    public int compareTo(ImageryInfo in)
    167168    {
    168         int i = name.compareTo(in.name);
    169         if(i == 0) {
     169        int i = countryCode.compareTo(in.countryCode);
     170        if (i == 0) {
     171            i = name.compareTo(in.name);
     172        }
     173        if (i == 0) {
    170174            i = url.compareTo(in.url);
    171175        }
    172         if(i == 0) {
     176        if (i == 0) {
    173177            i = Double.compare(pixelPerDegree, in.pixelPerDegree);
    174178        }
     
    295299    }
    296300
     301    public String getCountryCode() {
     302        return countryCode;
     303    }
     304
     305    public void setCountryCode(String countryCode) {
     306        this.countryCode = countryCode;
     307    }
     308
    297309    /**
    298310     * Get the projections supported by the server. Only relevant for
Note: See TracChangeset for help on using the changeset viewer.