<br><font size=2 face="sans-serif">Hello,</font>
<br><font size=2 face="sans-serif">With the code below, a </font><tt><font size=3>GetFeatureInfo</font></tt><font size=3>
</font><font size=2 face="sans-serif">request is succesfully launched to
mapserver when I stop moving the mouse. In firebug I see the XML response
with the msGMLOutput tag. </font>
<br><font size=2 face="sans-serif">I can see that the highlightLayer has
feature added to it but I don't see them on the map. Like there is no geometry.</font>
<br><font size=2 face="sans-serif">What could be the reasons for that please?
Is there some params missing?</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br><font size=2 face="sans-serif">var highlight_style = { fillColor:'#99CCFF',
strokeColor:'#3399FF', fillOpacity:0.7 };</font>
<br><font size=2 face="sans-serif">highlightLayer = new OpenLayers.Layer.Vector(&quot;HighlightedFeatures&quot;,
{displayInLayerSwitcher: false, features:[], isBaseLayer: false, visibility:true,
style:highlight_style}); </font>
<br>
<br><font size=2 face="sans-serif">infoControls = </font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;hover: new OpenLayers.Control.WMSGetFeatureInfo</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; ({</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; title: 'Identify features by clicking',</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; layers: [overlays['national_2006']],</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; hover: true,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; queryVisible: true</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; ,infoFormat:'application/vnd.ogc.gml'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; })</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">// add layers to the map</font>
<br><font size=2 face="sans-serif">addLayersToMap();</font>
<br>
<br><font size=2 face="sans-serif">for (var i in infoControls) </font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; infoControls[i].events.register(&quot;getfeatureinfo&quot;,
this, showInfo);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; map.addControl(infoControls[i]);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; infoControls[i].activate();</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">function showInfo(evt) </font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; if
(evt.features &amp;&amp; evt.features.length) </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;highlightLayer.destroyFeatures();</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;highlightLayer.addFeatures(evt.features);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;highlightLayer.redraw();</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3>&nbsp; </font>
<p>