Changeset 7999 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-02-02T21:29:44+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #11061 - Remote API imagery cookies parameter is not handled properly (patch by p.janaszek)

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r7911 r7999  
    375375        if (info.getImageryType() == ImageryType.TMS) {
    376376            checkUrl(info.getUrl());
    377             TMSTileSource t = new TemplatedTMSTileSource(info.getName(), info.getUrl(), info.getId(), info.getMinZoom(), info.getMaxZoom());
     377            TMSTileSource t = new TemplatedTMSTileSource(info.getName(), info.getUrl(), info.getId(), info.getMinZoom(), info.getMaxZoom(),
     378                    info.getCookies());
    378379            info.setAttribution(t);
    379380            return t;
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java

    r7937 r7999  
    146146        String url = args.get("url");
    147147        String type = args.get("type");
     148        String cookies = args.get("cookies");
    148149        try {
    149             ImageryLayer.create(new ImageryInfo(null, url, type, null, null));
     150            ImageryLayer.create(new ImageryInfo(null, url, type, null, cookies));
    150151        } catch (IllegalArgumentException e) {
    151152            throw new RequestHandlerBadRequestException(e.getMessage(), e);
Note: See TracChangeset for help on using the changeset viewer.