comparison gnv/src/main/webapp/scripts/olutils.jsp @ 997:f55692e3e0ce

Modified output of the GetfeatureInfo-request. gnv/trunk@1198 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 11 Jun 2010 09:25:44 +0000
parents e3301755bd3c
children 3665834344a8
comparison
equal deleted inserted replaced
996:0a652fd10638 997:f55692e3e0ce
201 if (polygons.getVisibility()) 201 if (polygons.getVisibility())
202 panel.addControls(drawPolygonControl); 202 panel.addControls(drawPolygonControl);
203 203
204 map.addControl(panel); 204 map.addControl(panel);
205 } 205 }
206 function parseGetFeatureInfoData(event) {
207 var contentHTML = "<div>";
208 var features = event.features;
209 var first = true;
210 for (feat in features){
211 if (feat != 'remove'){
212 var feature = features[feat];
213 var attributes = feature.attributes;
214 if (first){
215 first = false;
216 }else{
217 contentHTML += "<br/>";
218 }
219 contentHTML += "<table>";
220 for (att in attributes){
221 contentHTML += "<tr><td><b>"+att+":</b></td><td>" + attributes[att] + "</td></tr>";
222 }
223 contentHTML += "</table>";
224 }
225
226 }
227 contentHTML += "</div>";
228
229 mapPanel.map.addPopup(new OpenLayers.Popup.FramedCloud(
230 "chicken",
231 mapPanel.map.getLonLatFromPixel(event.xy),
232 null,
233 contentHTML,
234 null,
235 true
236 ));
237 }

http://dive4elements.wald.intevation.org