[OpenLayers-Users] WFS giving me lip

Christopher Schmidt crschmidt at metacarta.com
Wed Feb 27 10:18:25 EST 2008


On Wed, Feb 27, 2008 at 03:07:19PM -0000, Gissur Þórhallsson wrote:
> Thanks for your comprehensive reply.
> 
> Why do you recommend using Vector features over WFS?
> 
> I would still have to populate the Vector feature with a call to my WFS server, and the way it looks to me, that could be something of a hassle. 
> 
> I was thinking of what you wrote regardin my document not being correctly parsed, so I tried pasting the output from geoserver that is failing to parse for me, which I can see using firebug, into http://openlayers.org/dev/examples/vector-formats.html and that worked fine.
> 
> So I'm thinking of folliwing your advice, but wondering is whether I can use Vector layers with a WFS data source consistently.

Yes. Just drop the 'featureClass' option off the definition of your
Layer.WFS.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list