changeset 707:cb1bae26e7ae

Adapted MapServer path in the gui with http request parameters for calling GetCapabilites (issue237). gnv/trunk@976 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 23 Apr 2010 13:22:12 +0000
parents 2659a5b1fa1e
children 7448b6f5f1ed
files gnv/ChangeLog gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Fri Apr 23 07:55:05 2010 +0000
+++ b/gnv/ChangeLog	Fri Apr 23 13:22:12 2010 +0000
@@ -1,3 +1,10 @@
+2010-04-23  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue237
+
+	* src/main/webapp/WEB-INF/jsp/wmslayout.jsp: Added http request parameter to
+	  the mapserver path to simplify the GetCapabilities call for the user.
+
 2010-04-23  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue254
--- a/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp	Fri Apr 23 07:55:05 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp	Fri Apr 23 13:22:12 2010 +0000
@@ -33,7 +33,7 @@
             function init() {
                 <%if(request.getAttribute("wms_published") != null){ %>
                 map        = new OpenLayers.Map('map');
-                var server = '<%=serverPath%>?MAP=<%=mapfilePath%>';
+                var server = '<%=serverPath%>';
                 var back1 = new OpenLayers.Layer.WMS(
                     "Background1",
                     "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?",
@@ -114,7 +114,7 @@
                     <table>
                         <tr>
                             <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td>
-                            <td class="wmsvalue"><%=serverPath%>?MAP=<%=mapfilePath%></td>
+                            <td class="wmsvalue"><%=serverPath%>?SERVICE=WMS&amp;REQUEST=GetCapabilities</td>
                         </tr>
                         <tr>
                             <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td>

http://dive4elements.wald.intevation.org