# HG changeset patch # User Andre Heinecke # Date 1366723942 -7200 # Node ID 4cc59122b682ab8fc6d9c8ad5b1cdcedd3f4b95b # Parent 06036bc6fb19bf8e45256eb0de834600c4874661 Use fullRequestString as WMS Url diff -r 06036bc6fb19 -r 4cc59122b682 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java Tue Apr 23 15:30:06 2013 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java Tue Apr 23 15:32:22 2013 +0200 @@ -263,6 +263,10 @@ if (map != null) { GWT.log("Add new layer '" + layer.getName() + "' to map."); map.addLayer(layer); + if (layer instanceof WMS) { + wmsUrls.put(layer.getName(), + ((WMS)layer).getFullRequestString(new WMSParams(), null)); + } } } @@ -454,7 +458,6 @@ if (url == null || layers == null) { return null; } - this.wmsUrls.put(name, url); WMSParams params = new WMSParams(); params.setLayers(layers); @@ -473,7 +476,8 @@ WMS wms = new WMS(layers, url, params, opts); wms.setIsVisible(at.getActive() == 1); wms.setIsBaseLayer(false); - + // We can't set the full_url attribute here because map is not set + // at.addAttr("full_url", wms.getFullRequestString(params, null)); return wms; }