<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>thank you Ian,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>I've just fixed this strange behaviour.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>The problem was a mapquery layermanager instance; sincerely I don't know how it does the issue but dropping all mapquery code and using only a simplified
 jquery widget for managing layers, now, everything works great with this configuration:</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><code></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;">$(function(){</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">    mapControls = {</div><div style="background-color: transparent;">    <span class="Apple-tab-span" style="white-space:pre">
        </span>line: new OpenLayers.Control.Measure(OpenLayers.Handler.Path, {persist: true}),</div><div style="background-color: transparent;">    <span class="Apple-tab-span" style="white-space:pre">       </span>polygon: new OpenLayers.Control.Measure(OpenLayers.Handler.Polygon, {persist: true}),</div><div style="background-color: transparent;">    <span class="Apple-tab-span" style="white-space:pre"> </span>pan: new OpenLayers.Control.Pan({title:"Pan"}),</div><div style="background-color: transparent;">    <span class="Apple-tab-span" style="white-space:pre">     </span>zoomin: new OpenLayers.Control.ZoomBox({title:"Zoom in box", out: false}),</div><div style="background-color: transparent;">    <span class="Apple-tab-span" style="white-space:pre">  </span>zoomout: new OpenLayers.Control.ZoomBox({title:"Zoom out box", out: true}),</div><div style="background-color: transparent;">        // aggiunti
 peppelinux</div><div style="background-color: transparent;">        wmsgetfeatinfo: new OpenLayers.Control.WMSGetFeatureInfo({</div><div style="background-color: transparent;">                            url: "http://"+ wms_hostname +"/cgi-bin/mapserv?map="+mapfile_path, </div><div style="background-color: transparent;">                            title: 'Identify features by clicking',</div><div style="background-color: transparent;">                            drillDown: true,</div><div style="background-color: transparent;">                            layers: null,</div><div style="background-color: transparent;">         
                   //layers: [ corine, invasi, centri, infrastrutture, comuni, province ],</div><div style="background-color: transparent;">                            //layers: [ corine, invasi, centri, infrastrutture ],</div><div style="background-color: transparent;">                            //layers:   [ invasi ],</div><div style="background-color: transparent;">                            //infoFormat:'text/plain',</div><div style="background-color: transparent;">                            infoFormat:'text/html',</div><div style="background-color: transparent;">               
             //infoFormat:"application/vnd.ogc.gml",</div><div style="background-color: transparent;">                            click: 'true',</div><div style="background-color: transparent;">                            queryVisible: true,</div><div style="background-color: transparent;">                            eventListeners: {</div><div style="background-color: transparent;">                                getfeatureinfo: function(event) {</div><div style="background-color: transparent;">                                   
 map.addPopup(</div><div style="background-color: transparent;">                                                new OpenLayers.Popup.FramedCloud</div><div style="background-color: transparent;">                                                (</div><div style="background-color: transparent;">                                                "chicken", </div><div style="background-color: transparent;">                                               
 map.getLonLatFromPixel(event.xy),</div><div style="background-color: transparent;">                                                null,</div><div style="background-color: transparent;">                                                event.text,</div><div style="background-color: transparent;">                                                null,</div><div style="background-color: transparent;">                                                true</div><div style="background-color:
 transparent;">                                                )</div><div style="background-color: transparent;">                                                );},</div><div style="background-color: transparent;">                                </div><div style="background-color: transparent;">                                nogetfeatureinfo: function(event) </div><div style="background-color: transparent;">                                       
           {</div><div style="background-color: transparent;">                                                      </div><div style="background-color: transparent;">                                                   new OpenLayers.Popup("chicken",</div><div style="background-color: transparent;">                                                        new OpenLayers.LonLat(5,40),</div><div style="background-color: transparent;">                           
                             new OpenLayers.Size(200,200),</div><div style="background-color: transparent;">                                                        "example popup",</div><div style="background-color: transparent;">                                                        true);    </div><div style="background-color: transparent;">                                                  }</div><div style="background-color: transparent;">         
                       </div><div style="background-color: transparent;">                                </div><div style="background-color: transparent;">                                }</div><div style="background-color: transparent;">                            }), // fine getfeatureinfo</div><div style="background-color: transparent;">    };</div><div style="background-color: transparent;">    </div><div style="background-color: transparent;">    </div><div style="background-color: transparent;">    for(var key in mapControls) {</div><div style="background-color: transparent;"><span class="Apple-tab-span"
 style="white-space:pre">          </span>control = mapControls[key];</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">         </span>control.events.on({</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">         </span>    "measure": handleMeasurements,</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">              </span>    "measurepartial": handleMeasurements</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">                </span>});</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">         </span>map.addControl(control);</div><div style="background-color: transparent;">    }</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;"><br></div><div
 style="background-color: transparent;"><span></span></div><div style="background-color: transparent;">});</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span></code></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0,
 0, 0); background-color: transparent; font-style: normal;">thank you all,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">G</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">Da:</span></b> Ian Turton <ijturton@gmail.com><br> <b><span style="font-weight: bold;">A:</span></b> Giuseppe De Marco <peppelinux@yahoo.it> <br><b><span style="font-weight: bold;">Cc:</span></b> "openlayers-users@lists.osgeo.org"
 <openlayers-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Giovedì 23 Maggio 2013 16:39<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [OpenLayers-Users] drillDown: multiple requests but only first in pop-up<br> </font> </div> <div class="y_msg_container"><br><div id="yiv4613827621"><div dir="ltr">You need to change the QUERY_LAYERS parameter - that controls the layers that are queried.<div><br></div><div>Ian<br><div><br></div></div></div></div></div> </div> </div>  </div></body></html>