Changeset 11219 in josm


Ignore:
Timestamp:
2016-11-05T09:36:05+01:00 (7 years ago)
Author:
wiktorn
Message:

Use all information from wms_endpoint definition.

After the user chose the layers to work with only a handful of information were passed to resulting WMS ImageryInfo. Now all information are passed, including attribution, headers, cookies, etc.

Closes: #13916

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

    r11217 r11219  
    178178        }
    179179
    180         ImageryInfo ret = new ImageryInfo(info.getName(), url, "wms", info.getEulaAcceptanceRequired(), info.getCookies());
     180        // copy all information from WMS
     181        ImageryInfo ret = new ImageryInfo(info);
     182        // and update according to user choice
     183        ret.setUrl(url);
     184        ret.setImageryType(ImageryType.WMS);
    181185        if (layersString.length() > 2) {
    182186            ret.setName(ret.getName() + ' ' + layersString.substring(0, layersString.length() - 2));
Note: See TracChangeset for help on using the changeset viewer.