Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java @ 9703:0c8374059484
debug
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Thu, 21 Jan 2021 14:07:24 +0100 |
parents | 20456a3c92e2 |
children | ca9ed55d6f51 |
comparison
equal
deleted
inserted
replaced
9702:20456a3c92e2 | 9703:0c8374059484 |
---|---|
108 private Widget createLegendGraphics(HLayout row, final AttributedTheme at) { | 108 private Widget createLegendGraphics(HLayout row, final AttributedTheme at) { |
109 | 109 |
110 final String legend = at.getAttr("legend"); | 110 final String legend = at.getAttr("legend"); |
111 // TEST: final Image img = new Image("/images/FLYS_Donau.png"); (funktioniert!), | 111 // TEST: final Image img = new Image("/images/FLYS_Donau.png"); (funktioniert!), |
112 // ebenso FLYSResources.getTest(); | 112 // ebenso FLYSResources.getTest(); |
113 String attr = at.getAttr("url"); | |
114 String attr2 = at.getAttr("layers"); | |
115 | |
113 if (legend != null && !"".equals(legend)) { | 116 if (legend != null && !"".equals(legend)) { |
114 | 117 |
115 final String imgUrl = URL.encode(GWT.getHostPageBaseURL() + "images/wms_legend/" + legend); | 118 final String imgUrl = URL.encode(GWT.getHostPageBaseURL() + "images/wms_legend/" + legend); |
116 | 119 |
117 final Image image = new Image(imgUrl); | 120 final Image image = new Image(imgUrl); |
118 new MyWMSLoadHandler(row, image); | 121 new MyWMSLoadHandler(row, image); |
119 | 122 |
120 return image; | 123 return image; |
121 } | 124 } |
122 final String imgUrl = MapUtils.getLegendGraphicUrl(at.getAttr("url"), at.getAttr("layers")); | 125 |
126 final String imgUrl = MapUtils.getLegendGraphicUrl(attr, attr2); | |
123 final Image image = new Image(imgUrl); | 127 final Image image = new Image(imgUrl); |
124 | 128 |
129 com.smartgwt.client.util.SC.say(imgUrl); | |
125 new MyLoadHandler(row, ((Image) image)); | 130 new MyLoadHandler(row, ((Image) image)); |
126 // Image image = new Image(imgUrl); | 131 // Image image = new Image(imgUrl); |
127 // Widget widget = image.asWidget(); | 132 // Widget widget = image.asWidget(); |
128 // final Img img = new Img(imgUrl); | 133 // final Img img = new Img(imgUrl); |
129 // img.setImageType(ImageStyle.CENTER); | 134 // img.setImageType(ImageStyle.CENTER); |