[Users] WMSCapabilitesStore with proxy
Alexandre Dube
adube at mapgears.com
Mon Mar 15 17:02:00 CET 2010
Eric,
Eric Lemoine wrote:
> Hi Alexandre. In a store the proxy is the object through which the
> data is retrieved. For example one uses an HttpProxy to retrieve data
> with Ajax. By default a WMSCapabilitiesStore uses an HttpProxy
> configured with the provided url. I'm not sure I'm answering the
> question though
>
Thanks for the answer.
My problem is that when I use an external server (other than 127.0.0.1)
it doesn't work (no request is sent at all if I look at the Console tag
in Firebug). Loading from my local WMS server works (same layer, same
mapfile).
My guess was it had something to proxy stuff, I'm pretty much clueless
from there...
The store is created with :
var url = Ext.getCmp('wms_url').value;
if(!url) {
alert(OpenLayers.i18n('Please, enter an url in the textbox
above'));
return;
}
var params =
OpenLayers.Util.getParameterString(this.capabilitiesParams);
url = OpenLayers.Util.urlAppend(url, params);
this.WMSCapabilitiesStore =
new GeoExt.data.WMSCapabilitiesStore({'url': url});
this.WMSCapabilitiesStore.load();
Do you see anything obvious ?
Many thanks,
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list