diff flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfo.java @ 1402:15ef3d3081b7

Parse GetFeatureInfo response on our own and display resulting FeatureInfo objects in the GetFeatureInfoWindow. flys-client/trunk@3287 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 18 Nov 2011 11:39:10 +0000
parents 96708d81eaf6
children 09566522e899
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfo.java	Thu Nov 17 16:24:09 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfo.java	Fri Nov 18 11:39:10 2011 +0000
@@ -12,6 +12,7 @@
 import org.gwtopenmaps.openlayers.client.Pixel;
 import org.gwtopenmaps.openlayers.client.event.MapClickListener;
 
+import de.intevation.flys.client.shared.model.FeatureInfo;
 import de.intevation.flys.client.shared.model.Theme;
 
 import de.intevation.flys.client.client.FLYSConstants;
@@ -66,13 +67,13 @@
             (int) map.getSize().getHeight(),
             (int) map.getSize().getWidth(),
             pixel.x(), pixel.y(),
-            new AsyncCallback<String>() {
+            new AsyncCallback<List<FeatureInfo>>() {
             public void onFailure(Throwable e) {
                 SC.warn(MSG.getString(e.getMessage()));
             }
 
-            public void onSuccess(String response) {
-                new GetFeatureInfoWindow(response).show();
+            public void onSuccess(List<FeatureInfo> features) {
+                new GetFeatureInfoWindow(features).show();
             }
         });
     }

http://dive4elements.wald.intevation.org