Mercurial > dive4elements > gnv-client
annotate gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp @ 697:d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
gnv/trunk@928 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 14 Apr 2010 16:05:32 +0000 |
parents | 883b366e3b15 |
children | d7b005107443 |
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"> |
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
|
3 <%@ 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
|
4 <% |
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
|
5 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
|
6 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
|
7 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
|
8 String timeToLive = (String) request.getAttribute("ttl"); |
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
|
9 %> |
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
|
10 |
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
|
11 <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
|
12 <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
|
13 <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
|
14 <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
|
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 <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
|
17 <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
|
18 <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
|
19 <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
|
20 <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
|
21 <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
|
22 <meta name="robots" content="noindex"/> |
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 <link href="styles/default.css" rel="stylesheet" type="text/css"/> |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
24 <script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script> |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
25 <script type="text/javascript" src="scripts/jquery-1.4.2.min.js"></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
|
26 <script type="text/javascript"> |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
27 jQuery.noConflict(); |
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
|
28 var lon = 5; |
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
|
29 var lat = 55; |
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
|
30 var zoom = 5; |
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
|
31 var map, layer; |
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
|
32 |
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
|
33 function init() { |
677
8315b0a40329
Improved ExceptionHandling during WMS-Publishing.
Tim Englich <tim.englich@intevation.de>
parents:
585
diff
changeset
|
34 <%if(request.getAttribute("wms_published") != null){ %> |
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
|
35 map = new OpenLayers.Map('map'); |
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
|
36 var server = '<%=serverPath%>?MAP=<%=mapfilePath%>'; |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
37 var back1 = new OpenLayers.Layer.WMS( |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
38 "Background1", |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
39 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?", |
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
|
40 { |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
41 layers: '16', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
42 format: 'image/png', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
43 transparent: false |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
44 }, |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
45 { |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
46 isBaseLayer: 'true', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
47 singleTile: 'true' |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
48 } |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
49 ); |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
50 |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
51 var back2 = new OpenLayers.Layer.WMS( |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
52 "Background1", |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
53 "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?", |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
54 { |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
55 layers: '4', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
56 format: 'image/png', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
57 transparent: true |
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
|
58 }, |
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
|
59 { |
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
|
60 singleTile: 'true' |
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
|
61 } |
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
|
62 ); |
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
|
63 |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
64 layer = new OpenLayers.Layer.WMS( |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
65 "MyWMS", |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
66 server, |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
67 { |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
68 layers: '<%=layerName%>', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
69 format: 'image/png', |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
70 transparent: 'true' |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
71 }, |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
72 { |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
73 singleTile: 'true' |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
74 } |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
75 ); |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
76 |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
77 map.addLayers([back1, back2, layer]); |
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
|
78 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); |
677
8315b0a40329
Improved ExceptionHandling during WMS-Publishing.
Tim Englich <tim.englich@intevation.de>
parents:
585
diff
changeset
|
79 <%}%> |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
80 |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
81 initHeight(); |
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
|
82 } |
695
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
83 |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
84 function toggle(element) { |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
85 var ele = document.getElementById(element); |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
86 var vis = ele.style.visibility; |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
87 if (vis != "visible") { |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
88 ele.style.visibility = "visible"; |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
89 } |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
90 else { |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
91 ele.style.visibility = "hidden"; |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
92 } |
883b366e3b15
Replaced buttons for saving/loading projects with links.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
694
diff
changeset
|
93 } |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
94 |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
95 /** |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
96 * Calculate the content's height (content = window -header - footer). |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
97 */ |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
98 function initHeight() { |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
99 var winHeight = window.innerHeight; |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
100 var headerHeight = jQuery("headerElement").innerHeight(); |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
101 var footerHeight = jQuery("footerElement").innerHeight(); |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
102 var height = winHeight - headerHeight - footerHeight; |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
103 jQuery("contentElement").innerHeight(height); |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
104 jQuery(window).resize(initHeight); |
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
105 } |
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
|
106 </script> |
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
|
107 </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
|
108 |
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
|
109 <body id="gnviewerbody" onLoad="init()"> |
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
|
110 <div id="overlay"></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
|
111 <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute"> |
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
|
112 <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
|
113 <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
|
114 <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
|
115 </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
|
116 </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
|
117 </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
|
118 <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
|
119 <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
|
120 <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
|
121 </div> |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
695
diff
changeset
|
122 <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
|
123 <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
|
124 <%if(request.getAttribute("wms_published") != null){ %> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
125 <div class="outerMap"> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
126 <div id="wms"> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
127 <table> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
128 <tr> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
129 <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
130 <td class="wmsvalue"><%=serverPath%>?MAP=<%=mapfilePath%></td> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
131 </tr> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
132 <tr> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
133 <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
134 <td class="wmsvalue"><%=layerName%></td> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
135 </tr> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
136 <tr> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
137 <td class="parameter"><bean:message key="gnviewer.wms.layer.ttl"/>:</td> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
138 <td class="wmsvalue"><%=timeToLive%></td> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
139 </tr> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
140 </table> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
141 </div> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
142 <div id="map"></div> |
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
|
143 </div> |
694
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
144 <%}%> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
145 </div> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
146 <br> |
271ec4d11a9f
Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
680
diff
changeset
|
147 <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
|
148 <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
|
149 </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
|
150 </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
|
151 </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
|
152 </html> |