<br><font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">I am fairly new to the vector layers
within openlayers and I had a question about their usage. &nbsp;I'm trying
to use the gml layer to display data from a wfs. &nbsp;(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). &nbsp;It's not working.
&nbsp;I'm using geoserver for the wfs and getting a single feature which
I want to display in the gml layer. &nbsp;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.) </font>
<br>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#820040 face="Courier New"><b>var</b></font><font size=2 face="Courier New">
style = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
OpenLayers.Style();</font>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#820040 face="Courier New"><b>var</b></font><font size=2 face="Courier New">
rule = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
OpenLayers.Rule(</font>
<br><font size=2 face="Courier New">&nbsp; {</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;symbolizer:
{pointRadius: 10, fillColor: </font><font size=2 color=#4200ff face="Courier New">&quot;green&quot;</font><font size=2 face="Courier New">,
fillOpacity: 0.5, strokeColor: </font><font size=2 color=#4200ff face="Courier New">&quot;black&quot;</font><font size=2 face="Courier New">}</font>
<br><font size=2 face="Courier New">&nbsp; });</font>
<br><font size=2 face="Courier New">&nbsp; style.addRules([rule]);</font>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#820040 face="Courier New"><b>var</b></font><font size=2 face="Courier New">
gmlLayer = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
OpenLayers.Layer.GML(</font><font size=2 color=#4200ff face="Courier New">&quot;GML&quot;</font><font size=2 face="Courier New">,</font><font size=2 color=#4200ff face="Courier New">&quot;http://mywfscall/wfs&quot;</font><font size=2 face="Courier New">,</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
{styleMap:</font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
OpenLayers.StyleMap(style)});</font>
<br><font size=2 face="Courier New">&nbsp; </font><font size=2 color=#820040 face="Courier New"><b>return</b></font><font size=2 face="Courier New">
gmlLayer;</font>
<br>
<br><font size=2 face="sans-serif">Anyway, I've confirmed that my wfs call
is definitely returning gml -- I just can't get it to display. &nbsp;Can
anyone help me out here?</font>
<br>
<br><font size=2 face="sans-serif">Aaron</font>