<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Please see the api docs, this does not work with HTML, you need something like GML as the output format for GetFeatureInfo.<div><br></div><div><div>    /**</div><div>     * APIProperty: drillDown</div><div>     * {Boolean} Drill down over all WMS layers in the map. When</div><div>     *     using drillDown mode, hover is not possible, and an infoFormat that</div><div>     *     returns parseable features is required. Default is false.</div><div>     */</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On May 22, 2013, at 5:57 PM, Giuseppe De Marco <<a href="mailto:peppelinux@yahoo.it">peppelinux@yahoo.it</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); 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;">Using ol 2.12 with different layers configured in three different mapfiles on the same mapserver 6.x, Ubuntu 12.04.</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; background-color: transparent; font-style: normal; "><feature info></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: transparent; font-style: normal; "><br></div><div style="background-color: transparent;"><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">new
 OpenLayers.Control.WMSGetFeatureInfo({</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                            url: "http://"+ wms_hostname +"/cgi-bin/mapserv?map="+mapfile_path, </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                            title: 'Identify features by clicking',</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                            drillDown: true,</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                 
           infoFormat:'text/html',</font></div><div style="background-color: transparent;"><span style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">                            click: 'true',</span><br></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                            queryVisible: true,</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                            eventListeners: {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                   
             getfeatureinfo: function(event) {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                    map.addPopup(new OpenLayers.Popup.FramedCloud(</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                        "chicken", </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                        map.getLonLatFromPixel(event.xy),</font></div><div style="background-color:
 transparent;"><font face="times new roman, new york, times, serif">                                        null,</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                        event.text,</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                        null,</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                   
     true</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                    ));</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                    }</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                                }</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">                            }), // fine
 getfeatureinfo</font></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif"></feature info></font></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">When I made a featureinfo query I can see 4 http request to my django
 proxy, using console debug.</div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">Just the first request populates my FramedCloud, the second and the others: nothing to do, but they works ! </div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><br></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">If I copy n paste the request urls I can see, for the second request, the http-response with formatted html template.</div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">The third and fourth aren't querable so I
 get the WMS message  that explain this.</div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><br></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">How could  I wait for all the response and merge them into one single pop-up ?</div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><br></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><br></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><br></div><div style="background-color: transparent; font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif"><br></font></div></div></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>