Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to replicate the example at OpenLayers WFS protocol: work with filters if the protocol is defined out of layer constructor and can't get it to work.

I copied the html page into a web application and ran it on the same server that geoserver was deployed to but can't duplicate it.

Can anyone give me ideas on things to try to get it to work.

share|improve this question
can you give us some clues as to what doesn't work? – iant Jan 19 '13 at 8:11
Also posting the exact code you are using, the openlayers version and the WFS server you working against might be useful. – BradHards Jan 19 '13 at 8:25
The overlay enabled by the wfs does not show up when I run it locally. I tried using the tasmania_roads layer but doesn't show up. – Mike Jan 22 '13 at 21:21
var prot = new OpenLayers.Protocol.WFS({ url: "localhost:8080/geoserver/wfs/topp";, featureType: "tasmania_roads", featureNS: "";, defaultFilter: filt }); – Mike Jan 22 '13 at 22:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.