WMS and wfs are in almost(I think) interchangable. if you are using GeoServer for example, you can call the layer either as WFS or as WMS. Try to load it in ol as WMS then use fromWMSLayer like in the select feature example

stash wrote:
Hello,

I tried what you said to add my defined wfs layer to the control but it
didn't work (no protocol found)

Further more I searched in the examples of openlayers and found this code:

   control = new OpenLayers.Control.GetFeature({
                protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer),
                box: true,
                hover: true,
                multipleKey: "shiftKey",
                toggleKey: "ctrlKey"
            });


The problem is the part 'fromWMSLayer'. My layer is a wfs and so I would
need something like that:

OpenLayers.Protocol.WFS.fromWFSLayer(layer).

Is something like that excisting? Unfortunately I found nothing in the
documentation.

Best Regards

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

Reply via email to