[OpenLayers-Users] trouble with WFS and Mapserver

Christopher Schmidt crschmidt at metacarta.com
Thu Sep 27 16:40:14 EDT 2007


On Thu, Sep 27, 2007 at 04:06:17PM -0400, Burgholzer,Robert wrote:
> I am having a hard time getting my mapserver to serve up WFS layers (or
> accessing them via OpenLayers, I really don't know which).
> 
>  
> 
> I have tested the mapserver with WMS, and all is good. I am able to
> retrieve WFS data from mapserver via an URL request for getfeature,
> however, I get no success when trying to load it into openlayers via
> WFS, just a blank map.  In the javascript error console, all I get is an
> error that the "maxExtent has no properties", indicating that there are
> no valid layers, I assume, which is of course evidenced by the fact that
> my map is blank.

You must have a baseLayer.

A WFS layer is by default not a base layer. 

You can make it a baseLayer by specifying a baseLayer option to the WFS
layer set to true.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list