Ticket #11061: josm_core.patch

File josm_core.patch, 1.7 KB (added by p.janaszek, 9 years ago)
  • src/org/openstreetmap/josm/gui/layer/TMSLayer.java

     
    374374    public static TileSource getTileSource(ImageryInfo info) throws IllegalArgumentException {
    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(), info.getCookies());
    378378            info.setAttribution(t);
    379379            return t;
    380380        } else if (info.getImageryType() == ImageryType.BING)
  • src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java

     
    145145    protected void validateRequest() throws RequestHandlerBadRequestException {
    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);
    152153        }