Skip to content

Commit 98b6a4b

Browse files
author
stoecker
committed
add common settings of manual WMS also to TMS, patch by anonym (adapted for GUi changes), fix #24247
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19382 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent c9a46ec commit 98b6a4b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/org/openstreetmap/josm/gui/preferences/imagery/AddTMSLayerPanel.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,22 @@ public AddTMSLayerPanel() {
4848
tr("{0} is replaced by a random selection from the given comma separated list, e.g. {1}", "{switch:...}", "{switch:a,b,c}")
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);
5454

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);
6769
}
@@ -80,6 +82,8 @@ private String buildTMSUrl() {
8082
public ImageryInfo getImageryInfo() {
8183
ImageryInfo ret = new ImageryInfo(getImageryName(), getTmsUrl());
8284
ret.setImageryType(ImageryType.TMS);
85+
ret.setCustomHttpHeaders(getCommonHeaders());
86+
ret.setGeoreferenceValid(getCommonIsValidGeoreference());
8387
return ret;
8488

8589
}

0 commit comments

Comments
 (0)