Mercurial > dive4elements > river
changeset 9703:0c8374059484
debug
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Thu, 21 Jan 2021 14:07:24 +0100 (2021-01-21) |
parents | 20456a3c92e2 |
children | ca9ed55d6f51 |
files | artifacts/doc/conf/backend-db.xml artifacts/doc/conf/seddb-db.xml gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java |
diffstat | 3 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/backend-db.xml Thu Jan 21 13:22:37 2021 +0100 +++ b/artifacts/doc/conf/backend-db.xml Thu Jan 21 14:07:24 2021 +0100 @@ -5,7 +5,7 @@ <password>d4e</password> <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> <driver>org.postgresql.Driver</driver> - <url>jdbc:postgresql://localhost:63333/d4e2</url> + <url>jdbc:postgresql://localhost:5432/d4e</url> <validation-query>select 1 from rivers</validation-query> <max-wait>30000</max-wait> </backend-database>
--- a/artifacts/doc/conf/seddb-db.xml Thu Jan 21 13:22:37 2021 +0100 +++ b/artifacts/doc/conf/seddb-db.xml Thu Jan 21 14:07:24 2021 +0100 @@ -5,7 +5,7 @@ <password>seddb</password> <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> <driver>org.postgresql.Driver</driver> - <url>jdbc:postgresql://localhost:63333/seddb2</url> + <url>jdbc:postgresql://localhost:5432/seddb</url> <validation-query>select 1 from gewaesser</validation-query> <max-wait>30000</max-wait> <!--
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java Thu Jan 21 13:22:37 2021 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java Thu Jan 21 14:07:24 2021 +0100 @@ -110,6 +110,9 @@ final String legend = at.getAttr("legend"); // TEST: final Image img = new Image("/images/FLYS_Donau.png"); (funktioniert!), // ebenso FLYSResources.getTest(); + String attr = at.getAttr("url"); + String attr2 = at.getAttr("layers"); + if (legend != null && !"".equals(legend)) { final String imgUrl = URL.encode(GWT.getHostPageBaseURL() + "images/wms_legend/" + legend); @@ -119,9 +122,11 @@ return image; } - final String imgUrl = MapUtils.getLegendGraphicUrl(at.getAttr("url"), at.getAttr("layers")); + + final String imgUrl = MapUtils.getLegendGraphicUrl(attr, attr2); final Image image = new Image(imgUrl); + com.smartgwt.client.util.SC.say(imgUrl); new MyLoadHandler(row, ((Image) image)); // Image image = new Image(imgUrl); // Widget widget = image.asWidget();