Hi Alex,<div><br></div><div>here&#39;s some piece of the code:<div><br></div><div>// vector layer</div><div><div>layerHover = new OpenLayers.Layer.Vector(&quot;Hover&quot;);</div><div><br></div><div>// wms/wfs layer            </div>
<div>layerWMS  =  new OpenLayers.Layer.WMS(</div><div>                          &quot;regions WMS&quot;,</div><div>                          &quot;<a href="http://spssoww5d.sso.msp.gouv.qc.ca/cgi-wms/mapserv.exe?map=E:/ms4w/msp/wfs/botinSI.map&amp;">http://spssoww5d.sso.msp.gouv.qc.ca/cgi-wms/mapserv.exe?map=E:/ms4w/msp/wfs/botinSI.map&amp;</a>&quot;,</div>
<div>                          {layers: &#39;BDGA_REGIO_S_POLY_1M&#39;,</div><div>                           format: &#39;image/gif&#39;,</div><div>                           transparent: true,</div><div>                           visibility: true</div>
<div>                          }</div><div>                          );</div><div><br></div><div> //control to launch wfs call on hover</div><div><div> control = new OpenLayers.Control.GetFeature({</div><div>                protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layerWMS),</div>
<div>                hover: true</div><div>            });</div></div><div><br></div><div>//never called, see explanation below</div><div><div>control.events.register(&quot;hoverfeature&quot;, this, function(e) {</div><div>
                layerHover.addFeatures([e.feature]);<br></div><div>            });<br></div></div><div><br></div><div><br></div>As I said, The WFS call is maded on hover and I can see the GML in the response.  In the request function of the GetFeature.js file:</div>
<div><span class="Apple-style-span" style="font-style: italic; font-weight: bold;"><span class="Apple-style-span" style="font-style: normal; font-weight: normal; "><div>result.features = void BUT</div><div>result.priv.responseText contain the GML response</div>
<div><br></div><div>so when this function is called, nothing happens since result.features is null/void</div><div><br></div></span></span></div><div><div>request: function(bounds, options) {</div><div>        options = options || {};</div>
<div>        var filter = new OpenLayers.Filter.Spatial({</div><div>            type: OpenLayers.Filter.Spatial.BBOX,</div><div>            value: bounds</div><div>        });</div><div>        </div><div>        var response = this.protocol.read({</div>
<div>            maxFeatures: options.single == true ? this.maxFeatures : undefined,</div><div>            filter: filter,</div><div>            callback: function(result) {</div><div>                if(result.code == 1) {</div>
<div><br></div><div>                    if(result.features.length) {<br></div><div>                        if(options.single == true) {</div><div>                            this.selectBestFeature(result.features,</div><div>
                                bounds.getCenterLonLat(), options);</div><div>                        } else {</div><div>                            this.select(result.features);</div><div>                        }</div><div>
                    } else if(options.hover) {</div><div>                        this.hoverSelect();</div><div>                    } else {</div><div>                        this.events.triggerEvent(&quot;clickout&quot;);</div>
<div>                        if(this.clickout) {</div><div>                            this.unselectAll();</div><div>                        }</div><div>                }<br></div><div>                // Reset the cursor.</div>
<div>                OpenLayers.Element.removeClass(this.map.div, &quot;olCursorWait&quot;);</div><div>            },</div><div>            scope: this</div><div>        });</div><div>        if(options.hover == true) {</div>
<div>            this.hoverRequest = response.priv;</div><div>        }</div><div>    },</div></div><div><br></div><div><br><div class="gmail_quote">2009/5/29 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Martin,<br>
<br>
 It could be a namespace issue.  It would be easier to help if your code.  The vector layer object should be enough.<br>
<br>
Regards,<br>
<br>
Alexandre<br>
<br>
Martin Ouellet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi all,<br>
<br>
I&#39;am using the getfeature example (getfeature-wfs.html) with my data (mapserver + shp).  The WFS call il launch on the hover event and the GML is return correclty (I can see it in firebug) but during the call back (hoverSelect function), the parameter feature is always null (void) so the GML response is not added to my vector layer.<br>

<br>
any suggestion?<br>
<br>
MartinO<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
  <br>
</blockquote>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</blockquote></div><br></div></div>