comparison gnv/src/main/webapp/scripts/olutils.jsp @ 1016:3665834344a8

Issue317: Provide a Comboboy with given WMS instead of an Textfield gnv/trunk@1244 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 29 Jun 2010 15:41:10 +0000
parents f55692e3e0ce
children
comparison
equal deleted inserted replaced
1015:c83eeebdf521 1016:3665834344a8
95 copy.set("layer", record.get("layer")); 95 copy.set("layer", record.get("layer"));
96 copy.get("layer").mergeNewParams({ 96 copy.get("layer").mergeNewParams({
97 format: "image/png", 97 format: "image/png",
98 transparent: true 98 transparent: true
99 }); 99 });
100 copy.singletile = true;
101 mapPanel.layers.add(copy); 100 mapPanel.layers.add(copy);
102 } 101 }
103 } 102 }
104 103
105 } 104 }
124 } 123 }
125 } 124 }
126 125
127 126
128 function updateCapabilities() { 127 function updateCapabilities() {
129 var ele = Ext.Element.get('capfield'); 128
130 129 var url = capfield.getValue();
131 var url = ele.getValue();
132 var service = "SERVICE=WMS"; 130 var service = "SERVICE=WMS";
133 var request = "REQUEST=GetCapabilities"; 131 var request = "REQUEST=GetCapabilities";
132 var version = "VERSION=1.1.1";
134 url = urlAppend(url, service); 133 url = urlAppend(url, service);
135 url = urlAppend(url, request); 134 url = urlAppend(url, request);
135 url = urlAppend(url, version);
136 136
137 store = new GeoExt.data.WMSCapabilitiesStore({ 137 store = new GeoExt.data.WMSCapabilitiesStore({
138 url: url 138 url: url,
139 layerOptions: {singleTile: true}
139 }); 140 });
140 store.load({ 141 store.load({
141 callback: showWarning 142 callback: showWarning
142 }); 143 });
143 144

http://dive4elements.wald.intevation.org