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@openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to