<br><font size=2 face="sans-serif">Hello,</font>
<br><font size=2 face="sans-serif">When I define the Control.WMSGetFeatureInfo
if I don't specify the &quot;layers:&quot; properties, every visible layers
with a Template in the mapfile are queried and I get the results. That
is as expected. My problem is when I want to specify one layer to query.
The request is not launched (I see nothing in firebug). Here is the code</font>
<br>
<br><font size=2 face="sans-serif">test = new OpenLayers.Layer.WMS('HLM',
'http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&amp;',
{layers: 'HLM', transparent: &quot;true&quot;, format:&quot;image/gif&quot;},{isBaseLayer:
false, visibility: false,singleTile:true});</font>
<br><font size=2 face="sans-serif">map.addLayer(test);</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">click: new OpenLayers.Control.WMSGetFeatureInfo({</font>
<br><font size=2 face="sans-serif">url: 'http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map',
</font>
<br><font size=2 face="sans-serif">title: 'Identify features by clicking',</font>
<br><font size=2 face="sans-serif">layers: [test],</font>
<br><font size=2 face="sans-serif">queryVisible: true,</font>
<br><font size=2 face="sans-serif">infoFormat:'text/html'</font>
<br><font size=2 face="sans-serif">})</font>
<br><font size=2 face="sans-serif">}</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">}</font>
<br><font size=2 face="sans-serif">infoControls['click'].activate();</font>
<br>
<br><font size=2 face="sans-serif">Is there any params missing?</font>
<br><font size=2 face="sans-serif">Thanks for your help,</font>
<br><font size=2 face="sans-serif">Steve</font>