Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp @ 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 | d7b005107443 |
children | 5f29bfeb61bd |
comparison
equal
deleted
inserted
replaced
706:2659a5b1fa1e | 707:cb1bae26e7ae |
---|---|
31 var map, layer; | 31 var map, layer; |
32 | 32 |
33 function init() { | 33 function init() { |
34 <%if(request.getAttribute("wms_published") != null){ %> | 34 <%if(request.getAttribute("wms_published") != null){ %> |
35 map = new OpenLayers.Map('map'); | 35 map = new OpenLayers.Map('map'); |
36 var server = '<%=serverPath%>?MAP=<%=mapfilePath%>'; | 36 var server = '<%=serverPath%>'; |
37 var back1 = new OpenLayers.Layer.WMS( | 37 var back1 = new OpenLayers.Layer.WMS( |
38 "Background1", | 38 "Background1", |
39 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?", | 39 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?", |
40 { | 40 { |
41 layers: '0', | 41 layers: '0', |
112 <div class="outerMap"> | 112 <div class="outerMap"> |
113 <div id="wms"> | 113 <div id="wms"> |
114 <table> | 114 <table> |
115 <tr> | 115 <tr> |
116 <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td> | 116 <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td> |
117 <td class="wmsvalue"><%=serverPath%>?MAP=<%=mapfilePath%></td> | 117 <td class="wmsvalue"><%=serverPath%>?SERVICE=WMS&REQUEST=GetCapabilities</td> |
118 </tr> | 118 </tr> |
119 <tr> | 119 <tr> |
120 <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td> | 120 <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td> |
121 <td class="wmsvalue"><%=layerName%></td> | 121 <td class="wmsvalue"><%=layerName%></td> |
122 </tr> | 122 </tr> |