[OpenLayers-Users] Layer.Vector with Protocol.WFS will not show

Bart van den Eijnden bartvde at osgis.nl
Thu Mar 11 06:06:43 EST 2010


Btw, readFormat was not in OL 2.8, only in trunk.

Best regards,
Bart

On Mar 11, 2010, at 11:57 AM, Bart van den Eijnden wrote:

> Hi,
> 
> this is because the new GML parser (i.e. Format.GML.v2 in your case) does not parse your response. I would need to dig in deeper to see why.
> 
> As a workaround, you can specify the old GML parser (used by Layer.WFS) as the readFormat for your Protocol.WFS, so:
> 
> protocol: new OpenLayers.Protocol.WFS({
>     url:  "/grensepunkt.gml.asp",
>     readFormat: new OpenLayers.Format.GML(),                                                          
>     featureType: "GRENSEPUNKT"
>  ..
> etc.
> 
> Best regards,
> Bart
> 
> On Mar 11, 2010, at 11:41 AM, scalable vector wrote:
> 
>> http://kart.nois.no/openlayers-2.8test/test.htm tries to display some gml with Layer.WFS (deprecated according to the docs) and Layer.Vector. Only Layer.WFS works. Can anyone see why? I tried setting featurePrefix and featureNS, but that didn't help.
>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 




More information about the Users mailing list