changeset 983:45ea5feb94c0

Make GetFeatureInforRequest-Url configurable. Change responsetype of GetFeatureInfo-request to gml gnv/trunk@1165 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 07 Jun 2010 12:35:49 +0000
parents cd9414538f10
children cfc7bd35ee0b
files gnv/ChangeLog gnv/src/main/webapp/scripts/viewport.jsp
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <tim.englich@intevation.de>
+
+	* 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  <tim.englich@intevation.de>
 
 	* src/main/webapp/WEB-INF/config/struts-config.xml: 
--- 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: '<bean:message key="gnviewer.mapclient.controls.info.title"/>',
             queryVisible: true,
+            infoFormat: 'application/vnd.ogc.gml',
             eventListeners: {
                 getfeatureinfo: function(event) {
                     mapPanel.map.addPopup(new OpenLayers.Popup.FramedCloud(

http://dive4elements.wald.intevation.org