Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/scripts/viewport.jsp @ 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 |
line wrap: on
line diff
--- 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(