Changeset 13752 in josm


Ignore:
Timestamp:
2018-05-13T13:07:36+02:00 (18 months ago)
Author:
wiktorn
Message:

Default layer name for WMTS

File:
1 edited

Legend:

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

    r13751 r13752  
    6969                layers = WMTSTileSource.groupLayersByNameAndTileMatrixSet(capabilities.getLayers());
    7070                layerTable = new WMTSLayerSelection(layers);
     71                layerTable.getTable().getSelectionModel().addListSelectionListener(lsl -> {
     72                    name.setText(capabilities.getBaseUrl() + ": " + layerTable.getSelectedLayer().getUserTitle());
     73                });
    7174                layerPanel.removeAll();
    7275                layerPanel.add(layerTable, GBC.eol().fill());
Note: See TracChangeset for help on using the changeset viewer.