Hello,

I am fairly new to the vector layers within openlayers and I had a 
question about their usage.  I'm trying to use the gml layer to display 
data from a wfs.  (If you're wondering why I'm not using the wfs layer, 
it's because I couldn't find a method to change the wfs url and reload the 
layer in the wfs layer -- whereas such a method exists within the gml 
layer, seturl).  It's not working.  I'm using geoserver for the wfs and 
getting a single feature which I want to display in the gml layer.  I 
don't know if this is just some inherent incompatibility or if I'm not 
styling the gml layer properly (I've been experimenting with points that 
are being retrieved through the wfs.) 

  var style = new OpenLayers.Style();
  var rule = new OpenLayers.Rule(
  {
       symbolizer: {pointRadius: 10, fillColor: "green", fillOpacity: 0.5, 
strokeColor: "black"}
  });
  style.addRules([rule]);
  var gmlLayer = new OpenLayers.Layer.GML("GML","http://mywfscall/wfs";,
          {styleMap:new OpenLayers.StyleMap(style)});
  return gmlLayer;

Anyway, I've confirmed that my wfs call is definitely returning gml -- I 
just can't get it to display.  Can anyone help me out here?

Aaron
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to