[OpenLayers-Users] WFS layers loaded are not visible [Solved]
Alessio Di Lorenzo
alessio.dilorenzo at gmail.com
Wed Mar 5 08:46:28 EST 2008
Hi all,
the solution was very simple:
- the proxy.cgi was correct
- the javascript code was also correct but I had to change the line
OpenLayers.ProxyHost="/cgi-bin/proxy.cgi/?url=";
in
OpenLayers.ProxyHost='' ";
It works quite well (a little slow if I consider to be in localhost) and
the wfs layers are loaded properly.
By now I'm working to add a search function that looks into the wfs
layer attibutes and zoom to the search results on the map... I think I
will be back very soon with new issues :)
regards,
alessio
Open Maps ha scritto:
> Hi,
>
> I checked again my proxy.cgi script (located in /usr/lib/cgi-bin like
> the mapserv cgi) and the allowedHost looks correct. I add my proxy.cgi
> script as an attachment to this post... hope this could be useful to
> understand the problem.
>
> I read all the messages about proxy and wfs and I saw all the code
> examples, but don't understand why my wfs layers are unaccessible and
> generate the bad gateway.
>
> alessio
>
>
>
> Alessio Di Lorenzo ha scritto:
>> Hi Christopher,
>>
>> may be you are talking about this?
>>
>> allowedHosts = ['www.openlayers.org', 'openlayers.org',
>> 'labs.metacarta.com', 'world.freemap.in',
>> 'prototype.openmnnd.org',
>> 'geo.openplans.org','http://localhost']
>>
>> the wfs server is in localhost (I added the localhost url to the
>> script from the beginning)
>> and the wms layer is served by metacarta.
>> Is there something wrong in my allowedHosts?
>> Perhaps I have to specify the complete wfs url?
>>
>>
>>
>> Christopher Schmidt ha scritto:
>>> This means you have not correctly added the host you are connecting to
>>> to the available list of proxy hosts in the proxy.cgi file.
>>>
>>> REgards,
>>>
>>
>>
>
More information about the Users
mailing list