Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp @ 677:8315b0a40329
Improved ExceptionHandling during WMS-Publishing.
gnv/trunk@812 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 22 Mar 2010 09:49:48 +0000 |
parents | 2e690cb2247c |
children | ba3370dbc8c5 |
comparison
equal
deleted
inserted
replaced
676:707e142e7d44 | 677:8315b0a40329 |
---|---|
27 var lat = 55; | 27 var lat = 55; |
28 var zoom = 5; | 28 var zoom = 5; |
29 var map, layer; | 29 var map, layer; |
30 | 30 |
31 function init() { | 31 function init() { |
32 <%if(request.getAttribute("wms_published") != null){ %> | |
32 map = new OpenLayers.Map('map'); | 33 map = new OpenLayers.Map('map'); |
33 var server = '<%=serverPath%>?MAP=<%=mapfilePath%>'; | 34 var server = '<%=serverPath%>?MAP=<%=mapfilePath%>'; |
34 layer = new OpenLayers.Layer.WMS( | 35 layer = new OpenLayers.Layer.WMS( |
35 "MyWMS", | 36 "MyWMS", |
36 server, | 37 server, |
43 } | 44 } |
44 ); | 45 ); |
45 | 46 |
46 map.addLayer(layer); | 47 map.addLayer(layer); |
47 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); | 48 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); |
49 <%}%> | |
48 } | 50 } |
49 </script> | 51 </script> |
50 </head> | 52 </head> |
51 | 53 |
52 <body id="gnviewerbody" onLoad="init()"> | 54 <body id="gnviewerbody" onLoad="init()"> |
60 </div> | 62 </div> |
61 <div id="page"> | 63 <div id="page"> |
62 <jsp:include page="header.jsp" /> | 64 <jsp:include page="header.jsp" /> |
63 <jsp:include page="index.jsp" /> | 65 <jsp:include page="index.jsp" /> |
64 <jsp:include page="footer.jsp" /> | 66 <jsp:include page="footer.jsp" /> |
65 | 67 <%if(request.getAttribute("wms_published") != null){ %> |
66 <div class="outerMap"> | 68 <div class="outerMap"> |
67 <div id="wms"> | 69 <div id="wms"> |
68 <table> | 70 <table> |
69 <tr> | 71 <tr> |
70 <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td> | 72 <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td> |
76 </tr> | 78 </tr> |
77 </table> | 79 </table> |
78 </div> | 80 </div> |
79 <div id="map"></div> | 81 <div id="map"></div> |
80 </div> | 82 </div> |
83 <%}%> | |
81 </div> | 84 </div> |
82 </body> | 85 </body> |
83 </html> | 86 </html> |