Mercurial > dive4elements > gnv-client
annotate gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp @ 975:5779220ebb80
Added functionality to read WMS-Capabilities-Documents
gnv/trunk@1145 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 01 Jun 2010 17:40:54 +0000 |
parents | 1bb54da8c8ed |
children | cd9414538f10 |
rev | line source |
---|---|
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
3 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> |
585
2e690cb2247c
Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
584
diff
changeset
|
6 <% |
2e690cb2247c
Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
584
diff
changeset
|
7 String serverPath = (String) request.getAttribute("mapserver"); |
2e690cb2247c
Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
584
diff
changeset
|
8 String mapfilePath = (String) request.getAttribute("mapfile"); |
2e690cb2247c
Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
584
diff
changeset
|
9 String layerName = (String) request.getAttribute("layer"); |
680
ba3370dbc8c5
Parse time to live of a wms-layer from meta document and show it in html gui (issue197).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
677
diff
changeset
|
10 String timeToLive = (String) request.getAttribute("ttl"); |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
11 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
585
2e690cb2247c
Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
584
diff
changeset
|
12 %> |
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 <html xmlns="http://www.w3.org/1999/xhtml"> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 <head> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 <title> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 <bean:message key="gnviewer.app.title"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 </title> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 <meta http-equiv="Content-Script-Type" content="text/javascript"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 <meta http-equiv="Content-Style-Type" content="text/css"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 <meta http-equiv="Expires" content="Mon, 01 Jan 1990 00:00:01 GMT"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 <meta http-equiv="pragma" content="no-cache"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 <meta http-equiv="cache-control" content="no-cache"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
24 <meta name="robots" content="noindex"/> |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
25 |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
26 <link rel="stylesheet" type="text/css" href="scripts/ext/ext-2.3.0/resources/css/ext-all.css"></link> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
27 <link rel="stylesheet" type="text/css" href="scripts/geoext/geoext-0.6/resources/css/geoext-all.css"></link> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
28 <link rel="stylesheet" type="text/css" href="scripts/openlayers/OpenLayers-2.9/theme/default/style.css"></link> |
973
1bb54da8c8ed
Added more resources which are required to use the ol-client properly
Tim Englich <tim.englich@intevation.de>
parents:
971
diff
changeset
|
29 <link rel="stylesheet" type="text/css" href="styles/gnv.css"/> |
1bb54da8c8ed
Added more resources which are required to use the ol-client properly
Tim Englich <tim.englich@intevation.de>
parents:
971
diff
changeset
|
30 <link rel="stylesheet" type="text/css" href="styles/ol_style.css"/> |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
31 |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
32 <script type="text/javascript" src="scripts/ext/ext-2.3.0/adapter/ext/ext-base.js"></script> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
33 <script type="text/javascript" src="scripts/ext/ext-2.3.0/ext-all.js"></script> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
34 <script type="text/javascript" src="scripts/openlayers/OpenLayers-2.9/OpenLayers.js"></script> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
35 <script type="text/javascript" src="scripts/geoext/geoext-0.6/script/GeoExt.js"></script> |
975
5779220ebb80
Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents:
973
diff
changeset
|
36 <script type="text/javascript" src="scripts/olutils.js"></script> |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
37 <script type="text/javascript" src="<%=response.encodeURL("scripts/layers.jsp?uid="+System.currentTimeMillis())%>"></script> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
38 <script type="text/javascript" src="<%=response.encodeURL("scripts/viewport.jsp?uid="+System.currentTimeMillis())%>"></script> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
39 |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
40 <!-- save necessary variables here --> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
41 <script type="text/javascript"> |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
42 var options, layer, extent, map, mapPanel, infoControls; |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
43 var controls,layers, mouseLoc, grid; |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
44 var infoActive = false; |
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
45 </script> |
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
46 </head> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
47 |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
48 <body id="gnviewerbody"> |
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
49 <div id="overlay"></div> |
710
5f29bfeb61bd
Improved the design and layout of the user interface.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
707
diff
changeset
|
50 <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute;visibility:hidden;"> |
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
51 <div id="overlayContent"> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
52 <p> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
53 <bean:message key="gnviewer.productselection.overlay.title"/> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
54 </p> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
55 </div> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
56 </div> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
57 <div id="page"> |
694
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
58 <div id="headerElement"> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
59 <jsp:include page="header.jsp" /> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
60 </div> |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
61 <div id="contentElement" class="contentElement"> |
694
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
62 <jsp:include page="index.jsp" /> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
63 </div> |
971
a0e6566cd111
Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
710
diff
changeset
|
64 <br/> |
694
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
65 <div id="footerElement"> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
66 <jsp:include page="footer.jsp" /> |
585
2e690cb2247c
Show information about MapServer path and layer name after publishing calculated shapefiles as wms. Use MapServer settings configured in conf.xml to feed OpenLayers client.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
584
diff
changeset
|
67 </div> |
572
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
68 </div> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
69 </body> |
3f7bbc6dc751
Sourced JavaScript script tags for loading and rendering an OpenLayers client out to an own jsp page.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
70 </html> |