AW: [OpenLayers-Users] add WFL Layer to map

Arnd Wippermann arnd.wippermann at web.de
Wed Apr 13 14:11:25 EDT 2011


Hi,

1) No, if your url for the wfs can be written like
"/path/wfs?Request=WFS&..." 
2) Yes
3) You need a web server to work with wfs. You should avoid to load files
from filesystem.

5) You only need a proxy script to get vector files from a remote server, or
if you have configured your mapserver for a different host then your page
(http://localhost and http://localhost:8080 isn't the same). 
For image layers (WMS, TMS, Image) you don't need a proxy script.

Arnd

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Luca
Santaniello
Gesendet: Mittwoch, 13. April 2011 14:07
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] add WFL Layer to map

Hi all,

I need add WFS layer to map but I have a problem.

Questions:
1) Do I need to use the proxynecessary?
2) I user OpenLayers.Layer.Vector with OpenLayers.Protocol.WFS protocol
class. Is it right?
3) Can I call my example from filesystem or I need deploy example in
webserver as Tomcat?
4) I try run wfs-protocol.html but I get blank page because I don't have
proxy configured. Right?
5) When OpenLayers.ProxyHost is used? Only WFS protocol oh WMS Layers also?

Thanks




_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list