Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1401:047a44270348 | 1402:15ef3d3081b7 |
---|---|
10 import org.gwtopenmaps.openlayers.client.Map; | 10 import org.gwtopenmaps.openlayers.client.Map; |
11 import org.gwtopenmaps.openlayers.client.LonLat; | 11 import org.gwtopenmaps.openlayers.client.LonLat; |
12 import org.gwtopenmaps.openlayers.client.Pixel; | 12 import org.gwtopenmaps.openlayers.client.Pixel; |
13 import org.gwtopenmaps.openlayers.client.event.MapClickListener; | 13 import org.gwtopenmaps.openlayers.client.event.MapClickListener; |
14 | 14 |
15 import de.intevation.flys.client.shared.model.FeatureInfo; | |
15 import de.intevation.flys.client.shared.model.Theme; | 16 import de.intevation.flys.client.shared.model.Theme; |
16 | 17 |
17 import de.intevation.flys.client.client.FLYSConstants; | 18 import de.intevation.flys.client.client.FLYSConstants; |
18 import de.intevation.flys.client.client.services.GFIService; | 19 import de.intevation.flys.client.client.services.GFIService; |
19 import de.intevation.flys.client.client.services.GFIServiceAsync; | 20 import de.intevation.flys.client.client.services.GFIServiceAsync; |
64 map.getExtent().toString(), | 65 map.getExtent().toString(), |
65 map.getProjection(), | 66 map.getProjection(), |
66 (int) map.getSize().getHeight(), | 67 (int) map.getSize().getHeight(), |
67 (int) map.getSize().getWidth(), | 68 (int) map.getSize().getWidth(), |
68 pixel.x(), pixel.y(), | 69 pixel.x(), pixel.y(), |
69 new AsyncCallback<String>() { | 70 new AsyncCallback<List<FeatureInfo>>() { |
70 public void onFailure(Throwable e) { | 71 public void onFailure(Throwable e) { |
71 SC.warn(MSG.getString(e.getMessage())); | 72 SC.warn(MSG.getString(e.getMessage())); |
72 } | 73 } |
73 | 74 |
74 public void onSuccess(String response) { | 75 public void onSuccess(List<FeatureInfo> features) { |
75 new GetFeatureInfoWindow(response).show(); | 76 new GetFeatureInfoWindow(features).show(); |
76 } | 77 } |
77 }); | 78 }); |
78 } | 79 } |
79 } | 80 } |