Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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: "openplans.org/topp";, defaultFilter: filt }); –  Mike Jan 22 '13 at 22:34

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.