[OpenLayers-Users] WFS layers loaded are not visible [Solved]
Christopher Schmidt
crschmidt at metacarta.com
Wed Mar 5 09:32:41 EST 2008
On Wed, Mar 05, 2008 at 02:46:28PM +0100, Alessio Di Lorenzo wrote:
> Hi all,
>
> the solution was very simple:
>
> - the proxy.cgi was correct
No: proxy.cgi uses hostnames, not URLs. You needed to remove the http://
> - the javascript code was also correct but I had to change the line
>
> OpenLayers.ProxyHost="/cgi-bin/proxy.cgi/?url=";
>
> in
>
> OpenLayers.ProxyHost='' ";
This means that you didn't actually need a proxyhost at all, because
your Javascript is served from the same domain as your XML data.
> 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 :)
extractAttributes: true is your friend.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list