Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/InundationDurationAccess.java @ 9619:63bbd5e45839
#21 WMS Legend
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Thu, 10 Oct 2019 16:08:47 +0200 |
parents | ba0561906f81 |
children |
comparison
equal
deleted
inserted
replaced
9618:af671ee7835e | 9619:63bbd5e45839 |
---|---|
121 // final UedauernConfiguration config = UedauernConfiguration.getInstance(getRiverName(), type); | 121 // final UedauernConfiguration config = UedauernConfiguration.getInstance(getRiverName(), type); |
122 | 122 |
123 final String layerLabelFinal = Resources.getMsg(context.getMeta(), layerLabel, new Object[] { selectedItem }); | 123 final String layerLabelFinal = Resources.getMsg(context.getMeta(), layerLabel, new Object[] { selectedItem }); |
124 final String url = config.getUrl(); | 124 final String url = config.getUrl(); |
125 final String layer = config.getLayer(); | 125 final String layer = config.getLayer(); |
126 final String legend = config.getLegend(); | |
126 | 127 |
127 if (url != null && layer != null) { | 128 if (url != null && layer != null && legend != null) { |
128 // final String realUrl = classification.configureAddress(serverAddress, url, vegZoneId); | 129 // final String realUrl = classification.configureAddress(serverAddress, url, vegZoneId); |
129 | 130 |
130 return new WmsLayer(layerLabelFinal, url, layer, showLayerLink); | 131 return new WmsLayer(layerLabelFinal, url, layer, showLayerLink, legend); |
131 } | 132 } |
132 return null; | 133 return null; |
133 } | 134 } |
134 | 135 |
135 public String getSelectedLabel() { | 136 public String getSelectedLabel() { |