Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/scripts/viewport.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 | cfc7bd35ee0b |
children | 905cc67da916 |
comparison
equal
deleted
inserted
replaced
996:0a652fd10638 | 997:f55692e3e0ce |
---|---|
73 url: GETFEATUREINFO_URL, | 73 url: GETFEATUREINFO_URL, |
74 title: '<bean:message key="gnviewer.mapclient.controls.info.title"/>', | 74 title: '<bean:message key="gnviewer.mapclient.controls.info.title"/>', |
75 queryVisible: true, | 75 queryVisible: true, |
76 infoFormat: 'application/vnd.ogc.gml', | 76 infoFormat: 'application/vnd.ogc.gml', |
77 eventListeners: { | 77 eventListeners: { |
78 getfeatureinfo: function(event) { | 78 getfeatureinfo: parseGetFeatureInfoData |
79 mapPanel.map.addPopup(new OpenLayers.Popup.FramedCloud( | |
80 "chicken", | |
81 mapPanel.map.getLonLatFromPixel(event.xy), | |
82 null, | |
83 event.text, | |
84 null, | |
85 true | |
86 )); | |
87 } | |
88 } | 79 } |
89 }) | 80 }) |
90 }; | 81 }; |
91 | 82 |
92 for (var key in controls) { | 83 for (var key in controls) { |
93 panel.addControls([controls[key]]); | 84 panel.addControls([controls[key]]); |
94 } | 85 } |
95 | 86 |
96 map.addControl(panel); | 87 map.addControl(panel); |