# HG changeset patch # User Tim Englich # Date 1275914149 0 # Node ID 45ea5feb94c06fe04a110d16fb693d52b5da9145 # Parent cd9414538f101d599abfd1a123535de310369436 Make GetFeatureInforRequest-Url configurable. Change responsetype of GetFeatureInfo-request to gml gnv/trunk@1165 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r cd9414538f10 -r 45ea5feb94c0 gnv/ChangeLog --- a/gnv/ChangeLog Mon Jun 07 09:54:47 2010 +0000 +++ b/gnv/ChangeLog Mon Jun 07 12:35:49 2010 +0000 @@ -1,3 +1,11 @@ +2010-06-07 Tim Englich + + * src/main/webapp/scripts/viewport.jsp: + Switch the URl for the GetFeatureInfor Control to the URL of the WMS which + provide the generated Data of the GNV. + Also switch the Format of the Responsdata of the GetFeatureInfor-request to + GML. + 2010-06-07 Tim Englich * src/main/webapp/WEB-INF/config/struts-config.xml: diff -r cd9414538f10 -r 45ea5feb94c0 gnv/src/main/webapp/scripts/viewport.jsp --- a/gnv/src/main/webapp/scripts/viewport.jsp Mon Jun 07 09:54:47 2010 +0000 +++ b/gnv/src/main/webapp/scripts/viewport.jsp Mon Jun 07 12:35:49 2010 +0000 @@ -17,6 +17,7 @@ PROJECTION = "EPSG:4326"; MAX_EXTENT = new OpenLayers.Bounds(-17.44,29.41,40.04,77.66); INITIAL_CENTER = new OpenLayers.LonLat(5, 55); +GETFEATUREINFO_URL = "<%=SessionModelFactory.getInstance().getSessionModel(request).getLocalMapService().getURL()%>"; Ext.onReady(function() { @@ -67,9 +68,10 @@ ), info : new OpenLayers.Control.WMSGetFeatureInfo({ displayClass: "olControlFeatureInfo", - url: 'http://fluggs.wupperverband.de/wmsconnector/com.esri.wms.Esrimap/WV_WMS', + url: GETFEATUREINFO_URL, title: '', queryVisible: true, + infoFormat: 'application/vnd.ogc.gml', eventListeners: { getfeatureinfo: function(event) { mapPanel.map.addPopup(new OpenLayers.Popup.FramedCloud(