Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/scripts/viewport.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 | 80a5cde45d12 |
comparison
equal
deleted
inserted
replaced
974:a8e044224b16 | 975:5779220ebb80 |
---|---|
97 map: map, | 97 map: map, |
98 layers: layers | 98 layers: layers |
99 | 99 |
100 }); | 100 }); |
101 | 101 |
102 // map.setCenter(INITIAL_CENTER); | 102 map.setCenter(INITIAL_CENTER); |
103 | |
104 store = new GeoExt.data.WMSCapabilitiesStore({ | |
105 }); | |
106 store.load(); | |
107 | |
108 grid = new Ext.grid.GridPanel({ | |
109 id: 'wmsgrid', | |
110 collapsible: false, | |
111 split: false, | |
112 border: true, | |
113 //height: 400, | |
114 autoHeight: true, | |
115 store: store, | |
116 cm: new Ext.grid.ColumnModel([ | |
117 { | |
118 header: 'Name', | |
119 dataIndex: 'name', | |
120 sortable: true | |
121 }, | |
122 { | |
123 id: 'title', | |
124 header: 'Title', | |
125 dataIndex: 'title', | |
126 sortable: true | |
127 }]), | |
128 renderTo: 'capgrid', | |
129 bbar: [{ | |
130 text: 'Add Layer', | |
131 handler: addLayer | |
132 }] | |
133 }); | |
134 var cap = new Ext.Panel({ | |
135 id: 'wmspanel', | |
136 border: true, | |
137 region: 'east', | |
138 title: 'WMS Capabilities', | |
139 collapsible: false, | |
140 split: false, | |
141 contentEl: 'cap', | |
142 height: 400 | |
143 }); | |
144 | |
145 var capfield = new Ext.form.TextField({ | |
146 id: 'capfield', | |
147 region: 'east', | |
148 width: '100%', | |
149 renderTo: 'urlinput' | |
150 }); | |
151 | |
152 var capbutton = new Ext.Button({ | |
153 id: 'capbutton', | |
154 region: 'west', | |
155 handler: updateCapabilities, | |
156 text: 'Lade', | |
157 tooltip: 'Lade GetCapabilities Dokument', | |
158 renderTo: 'urlbutton' | |
159 }); | |
160 | |
161 | |
162 | |
103 | 163 |
104 /* --------------------------- Layer Tree ----------------------------------- */ | 164 /* --------------------------- Layer Tree ----------------------------------- */ |
105 | 165 |
106 | 166 |
107 // LayerTree | 167 // LayerTree |
180 animate: true, | 240 animate: true, |
181 activeOnTop: false | 241 activeOnTop: false |
182 }, | 242 }, |
183 items: [ | 243 items: [ |
184 tree, | 244 tree, |
245 cap, | |
185 legendPanel | 246 legendPanel |
186 ] | 247 ] |
187 } | 248 } |
188 ); | 249 ); |
189 | 250 |