[OpenLayers-Users] WFS connection
Christopher Schmidt
crschmidt at crschmidt.net
Thu Jul 6 19:16:03 CDT 2006
On Thu, Jul 06, 2006 at 07:02:46PM -0500, Richie Pierce wrote:
> I have just recently downloaded OpenLayers and am extremely exited about
> working with it. I have customized one of the examples and added my own
> WMS layer. Now I am trying to connect to our ArcIMS WFS connector. I
> have followed the example WFS.html but am not having any luck. Any help
> would be great.
Richie:
There's a bit of an undocumented aspect of the WFS layer: specifically,
that URLs are by default passed through a proxy layer, because there is
no way to access sites on a remote server via Javascript.
If you are running this under the www.geostor.arkansas.gov domain name,
this is not neccesary: Simply add a line, before your 'var g2_counties',
which says:
OpenLayers.ProxyHost = '';
If you're not running under that domain name, however, you'll need to
use a proxy script. There is an example proxy script in the examples
directory, called proxy.txt: Copy this file to 'proxy.cgi' in some
location on your webserver that can run CGI scripts. Then do something
similar to:
OpenLayers.ProxyHost = '/cgi-bin/proxy.cgi?';
If this does not work, and your demo is accessible on the internet,
please respond and include a link to your demo so that I can further
investigate the issue.
--
Christopher Schmidt
Web Developer
More information about the Users
mailing list