Changeset 19382 in josm for trunk/src


Ignore:
Timestamp:
2025-04-03T16:55:47+02:00 (3 months ago)
Author:
stoecker
Message:

add common settings of manual WMS also to TMS, patch by anonym (adapted for GUi changes), fix #24247

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddTMSLayerPanel.java

    r13591 r19382  
    4949        )) + "</html>"), GBC.eol().fill());
    5050
    51         add(rawUrl, GBC.eop().fill());
     51        add(rawUrl, GBC.eol().fill(GBC.HORIZONTAL));
    5252        rawUrl.setLineWrap(true);
    5353        rawUrl.addKeyListener(keyAdapter);
     
    5555        add(new JLabel(tr("{0} Enter maximum zoom (optional)", "3.")), GBC.eol());
    5656        tmsZoom.addKeyListener(keyAdapter);
    57         add(tmsZoom, GBC.eop().fill());
     57        add(tmsZoom, GBC.eol().fill(GBC.HORIZONTAL));
    5858
    5959        add(new JLabel(tr("{0} Edit generated {1} URL (optional)", "4.", "TMS")), GBC.eol());
    60         add(tmsUrl, GBC.eop().fill());
     60        add(tmsUrl, GBC.eol().fill(GBC.HORIZONTAL));
    6161        tmsUrl.setLineWrap(true);
    6262
     63        addCommonSettings();
     64
    6365        add(new JLabel(tr("{0} Enter name for this layer", "5.")), GBC.eol());
    64         add(name, GBC.eop().fill());
     66        add(name, GBC.eop().fill(GBC.HORIZONTAL));
    6567
    6668        registerValidableComponent(tmsUrl);
     
    8183        ImageryInfo ret = new ImageryInfo(getImageryName(), getTmsUrl());
    8284        ret.setImageryType(ImageryType.TMS);
     85        ret.setCustomHttpHeaders(getCommonHeaders());
     86        ret.setGeoreferenceValid(getCommonIsValidGeoreference());
    8387        return ret;
    8488
Note: See TracChangeset for help on using the changeset viewer.