Mercurial > dive4elements > river
changeset 2448:30c7f8f9f1b7
Made GetFeatureInfo request available for maps with one layer only.
flys-client/trunk@4122 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 05 Mar 2012 13:55:00 +0000 |
parents | 1695d66896f9 |
children | e73e92c70290 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/GFIServiceImpl.java |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Mon Mar 05 13:30:10 2012 +0000 +++ b/flys-client/ChangeLog Mon Mar 05 13:55:00 2012 +0000 @@ -1,3 +1,9 @@ +2012-03-05 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/client/server/GFIServiceImpl.java: + Suppress adding superflous colons during GetFeatureInfo URL creation. + Now, GetFeatureInfo requests with one layer only are queryable. + 2012-03-05 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/server/GFIServiceImpl.java Mon Mar 05 13:30:10 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/GFIServiceImpl.java Mon Mar 05 13:55:00 2012 +0000 @@ -167,12 +167,12 @@ boolean first = true; for (Theme theme: themes) { - if (!first) { - sb.append(","); - } - AttributedTheme layer = (AttributedTheme) theme; if (layer.getAttrAsBoolean("queryable")) { + if (!first) { + sb.append(","); + } + sb.append(layer.getAttr("layers")); first = false; }