annotate gnv/src/main/webapp/scripts/viewport.jsp @ 983:45ea5feb94c0

Make GetFeatureInforRequest-Url configurable. Change responsetype of GetFeatureInfo-request to gml gnv/trunk@1165 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 07 Jun 2010 12:35:49 +0000
parents cd9414538f10
children cfc7bd35ee0b
rev   line source
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
1 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
982
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
2 <%@page import="de.intevation.gnv.action.MapClientStandaloneAction"%>
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
3 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
982
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
4 <%
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
5 boolean standalone = request.getParameter(MapClientStandaloneAction.MAPCLIENTSTANDALONE_KEY) != null &&
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
6 request.getParameter(MapClientStandaloneAction.MAPCLIENTSTANDALONE_KEY).equals("true");
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
7 %>
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
8 OpenLayers.ProxyHost= "/cgi-bin/proxy.cgi?url=";
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
9 OpenLayers.Lang.setCode('<%=SessionModelFactory.getInstance().getSessionModel(request).getCurrentLocale().getLanguage() %>');
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
10 Ext.BLANK_IMAGE_URL = "scripts/openlayers/OpenLayers-2.9/theme/default/img/blank.gif";
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
12 /**
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
13 * XXX
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
14 * Change specific attributes for map, wfs-t, etc here. Do not change these
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 * settings inline the code!
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
16 */
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17 PROJECTION = "EPSG:4326";
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
18 MAX_EXTENT = new OpenLayers.Bounds(-17.44,29.41,40.04,77.66);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
19 INITIAL_CENTER = new OpenLayers.LonLat(5, 55);
983
45ea5feb94c0 Make GetFeatureInforRequest-Url configurable. Change responsetype of GetFeatureInfo-request to gml
Tim Englich <tim.englich@intevation.de>
parents: 982
diff changeset
20 GETFEATUREINFO_URL = "<%=SessionModelFactory.getInstance().getSessionModel(request).getLocalMapService().getURL()%>";
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
21
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
22 Ext.onReady(function() {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
23
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
24 /* this function call initialized the layers that are defined by the user.
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
25 * The variable 'layer' and 'layers' are initialized in this function as
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 * well, that are used in the following code! So do not remove this function
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
27 * call.
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
28 */
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
29 initLayers();
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
31 var options = {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
32 maxExtent: MAX_EXTENT,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
33 projection: PROJECTION,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
34 zoom: 5,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
35 controls: [],
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
36 units: 'm'
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 };
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
39
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
40 /* ------------------------ Create map and add controls ---------------------*/
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 // create map
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42 map = new OpenLayers.Map(options);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43 map.displayProjection = new OpenLayers.Projection(PROJECTION);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
44
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
45 // add controls
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
46
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
47
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
48 var nav = new OpenLayers.Control.NavigationHistory();
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
49 nav.previous.title = "<bean:message key="gnviewer.mapclient.controls.nav.previous.title"/>";
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
50 nav.next.title = "<bean:message key="gnviewer.mapclient.controls.nav.next.title"/>";
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
51 map.addControl(nav);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
52
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
53 panel = new OpenLayers.Control.Panel();
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
54 controls = {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
55 previous: nav.previous,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
56 next : nav.next,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
57 navigate: new OpenLayers.Control.MouseDefaults(
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
58 {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
59 displayClass: 'olControlPan',
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
60 title:'<bean:message key="gnviewer.mapclient.controls.navigate.title"/>'
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
61 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
62 ),
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
63 zoombox: new OpenLayers.Control.ZoomBox(
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
64 {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
65 displayClass: 'olControlZoomBox',
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
66 title: '<bean:message key="gnviewer.mapclient.controls.zoombox.title"/>'
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
67 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
68 ),
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
69 info : new OpenLayers.Control.WMSGetFeatureInfo({
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
70 displayClass: "olControlFeatureInfo",
983
45ea5feb94c0 Make GetFeatureInforRequest-Url configurable. Change responsetype of GetFeatureInfo-request to gml
Tim Englich <tim.englich@intevation.de>
parents: 982
diff changeset
71 url: GETFEATUREINFO_URL,
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
72 title: '<bean:message key="gnviewer.mapclient.controls.info.title"/>',
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
73 queryVisible: true,
983
45ea5feb94c0 Make GetFeatureInforRequest-Url configurable. Change responsetype of GetFeatureInfo-request to gml
Tim Englich <tim.englich@intevation.de>
parents: 982
diff changeset
74 infoFormat: 'application/vnd.ogc.gml',
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
75 eventListeners: {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
76 getfeatureinfo: function(event) {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
77 mapPanel.map.addPopup(new OpenLayers.Popup.FramedCloud(
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
78 "chicken",
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
79 mapPanel.map.getLonLatFromPixel(event.xy),
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
80 null,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
81 event.text,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
82 null,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
83 true
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
84 ));
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
85 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
86 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
87 })
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
88 };
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
89
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
90 for (var key in controls) {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
91 panel.addControls([controls[key]]);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
92 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
93
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
94 map.addControl(panel);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
95 map.addControl(new OpenLayers.Control.PanZoomBar({zoomWorldIcon: 'true'}));
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
96 map.addControl(new OpenLayers.Control.MouseDefaults());
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
97 map.addControl(new OpenLayers.Control.ScaleLine());
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
98 // Displaying the mouse postion
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
99 mousePosition = new OpenLayers.Control.MousePosition();
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
100 map.addControl(mousePosition);
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
101
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
102 /* --------------------------------------------------------------------------- */
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
103
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
104 // create MapPanel
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
105 mapPanel = new GeoExt.MapPanel({
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
106 border: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
107 region: "center",
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
108 map: map,
973
1bb54da8c8ed Added more resources which are required to use the ol-client properly
Tim Englich <tim.englich@intevation.de>
parents: 971
diff changeset
109 layers: layers
1bb54da8c8ed Added more resources which are required to use the ol-client properly
Tim Englich <tim.englich@intevation.de>
parents: 971
diff changeset
110
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
111 });
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
112
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
113 map.setCenter(INITIAL_CENTER);
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
114
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
115 store = new GeoExt.data.WMSCapabilitiesStore({
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
116 });
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
117 store.load();
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
118
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
119 grid = new Ext.grid.GridPanel({
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
120 id: 'wmsgrid',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
121 collapsible: false,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
122 split: false,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
123 border: true,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
124 //height: 400,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
125 autoHeight: true,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
126 store: store,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
127 cm: new Ext.grid.ColumnModel([
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
128 {
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
129 header: '<bean:message key="gnviewer.mapclient.wms.load.grid.name"/>',
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
130 dataIndex: 'name',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
131 sortable: true
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
132 },
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
133 {
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
134 id: 'title',
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
135 header: '<bean:message key="gnviewer.mapclient.wms.load.grid.title"/>',
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
136 dataIndex: 'title',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
137 sortable: true
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
138 }]),
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
139 renderTo: 'capgrid',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
140 bbar: [{
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
141 text: '<bean:message key="gnviewer.mapclient.wms.load.addlayer"/>',
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
142 handler: addLayer
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
143 }]
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
144 });
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
145 var cap = new Ext.Panel({
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
146 id: 'wmspanel',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
147 border: true,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
148 region: 'east',
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
149 title: '<bean:message key="gnviewer.mapclient.wms.load.title"/>',
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
150 collapsible: false,
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
151 split: false,
982
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
152 height: 400,
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
153 contentEl: 'cap'
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
154
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
155 });
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
156
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
157 var capfield = new Ext.form.TextField({
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
158 id: 'capfield',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
159 region: 'east',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
160 width: '100%',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
161 renderTo: 'urlinput'
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
162 });
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
163
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
164 var capbutton = new Ext.Button({
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
165 id: 'capbutton',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
166 region: 'west',
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
167 handler: updateCapabilities,
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
168 text: '<bean:message key="gnviewer.mapclient.wms.load.bt.text"/>',
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
169 tooltip: '<bean:message key="gnviewer.mapclient.wms.load.bt.tooltip"/>',
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
170 renderTo: 'urlbutton'
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
171 });
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
172
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
173
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
174
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
175
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
176 /* --------------------------- Layer Tree ----------------------------------- */
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
177
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
178
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
179 // LayerTree
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
180 var tree = new Ext.tree.TreePanel({
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
181 border: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
182 enableDD: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
183 region: "east",
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
184 title: "<bean:message key="gnviewer.mapclient.layercontrol"/>",
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
185 width: 200,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
186 split: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
187 collapsible: false,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
188 collapseMode: "mini",
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
189 autoScroll: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
190 loader: new Ext.tree.TreeLoader({
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
191 applyLoader: false,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
192 }),
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
193 root: {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
194 nodeType: "async",
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
195 children: [{
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
196 nodeType: "gx_baselayercontainer",
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
197 text: "<bean:message key="gnviewer.mapclient.layercontrol.baselayer"/>",
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
198 expanded: true
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
199 }, {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
200 nodeType: "gx_overlaylayercontainer",
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
201 text: "<bean:message key="gnviewer.mapclient.layercontrol.overlay"/>",
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
202 expanded: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
203 loader: {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
204 filter: function(record) {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
205 var layer = record.get("layer");
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
206 return layer.displayInLayerSwitcher === true &&
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
207 layer.isBaseLayer === false;
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
208 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
209 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
210 }]
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
211 },
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
212 rootVisible: false,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
213 lines: false
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
214 });
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
215
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
216 /*-------------------------------- Feature grid -------------------------------*/
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
217
982
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
218 // create legend paneclass="headerLineLinksl
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
219 legendPanel = new GeoExt.LegendPanel({
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
220 id: 'legendpanel',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
221 dynamic: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
222 border: true,
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
223 title: '<bean:message key="gnviewer.mapclient.legend"/>',
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
224 collapsible: false,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
225 split: false,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
226 defaults: {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
227 labelCls: 'legend',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
228 style: 'padding: 5px'
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
229 },
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
230 bodyStyle: 'padding:5px',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
231 width: 250,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
232 autoScroll: true,
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
233 region: 'east',
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
234 });
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
235
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
236
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
237 // use separate panels
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
238 // Create GUI
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
239
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
240 var mylegend = new Ext.Panel(
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
241 {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
242 region: "west",
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
243 title: '',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
244 split: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
245 width: 250,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
246 minSize: 225,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
247 maxSize: 400,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
248 collapsible: false,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
249 overflow: 'auto',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
250 margins: '0 0 0 5',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
251 layout: 'accordion',
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
252 layoutConfig: {
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
253 animate: true,
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
254 activeOnTop: false
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
255 },
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
256 items: [
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
257 tree,
975
5779220ebb80 Added functionality to read WMS-Capabilities-Documents
Tim Englich <tim.englich@intevation.de>
parents: 973
diff changeset
258 cap,
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
259 legendPanel
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
260 ]
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
261 }
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
262 );
982
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
263 <%if (!standalone){%>
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
264 // The main panel
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
265 new Ext.Panel({
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
266 renderTo: "mapcontainer",
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
267 layout: "border",
980
80a5cde45d12 Added i18n support to the mapclient.
Tim Englich <tim.englich@intevation.de>
parents: 975
diff changeset
268 height: 400,
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
269 items: [mapPanel, mylegend]
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
270 });
982
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
271 <%}else{ %>
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
272 // Create GUI
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
273 new Ext.Viewport({
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
274 layout: "border",
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
275 items: [
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
276 {
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
277 region: "north",
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
278 contentEl: "title",
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
279 cls: 'title',
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
280 height: 40
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
281 },
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
282 mylegend,
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
283 mapPanel
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
284 ]
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
285 });
cd9414538f10 Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents: 980
diff changeset
286 <%}%>
971
a0e6566cd111 Integrated Openlayers using ext and geoext into the GNV-WebClient
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
287 });

http://dive4elements.wald.intevation.org