[OpenLayers-Users] drillDown: multiple requests but only first in pop-up

Bart van den Eijnden bartvde at opengeo.org
Wed May 22 10:55:26 PDT 2013


Please see the api docs, this does not work with HTML, you need something like GML as the output format for GetFeatureInfo.

    /**
     * APIProperty: drillDown
     * {Boolean} Drill down over all WMS layers in the map. When
     *     using drillDown mode, hover is not possible, and an infoFormat that
     *     returns parseable features is required. Default is false.
     */

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



On May 22, 2013, at 5:57 PM, Giuseppe De Marco <peppelinux at yahoo.it> wrote:

> Using ol 2.12 with different layers configured in three different mapfiles on the same mapserver 6.x, Ubuntu 12.04.
> 
> <feature info>
> 
> new OpenLayers.Control.WMSGetFeatureInfo({
>                             url: "http://"+ wms_hostname +"/cgi-bin/mapserv?map="+mapfile_path, 
>                             title: 'Identify features by clicking',
>                             drillDown: true,
>                             infoFormat:'text/html',
>                             click: 'true',
>                             queryVisible: true,
>                             eventListeners: {
>                                 getfeatureinfo: function(event) {
>                                     map.addPopup(new OpenLayers.Popup.FramedCloud(
>                                         "chicken", 
>                                         map.getLonLatFromPixel(event.xy),
>                                         null,
>                                         event.text,
>                                         null,
>                                         true
>                                     ));
>                                     }
>                                 }
>                             }), // fine getfeatureinfo
> 
> </feature info>
> 
> When I made a featureinfo query I can see 4 http request to my django proxy, using console debug.
> Just the first request populates my FramedCloud, the second and the others: nothing to do, but they works ! 
> 
> If I copy n paste the request urls I can see, for the second request, the http-response with formatted html template.
> The third and fourth aren't querable so I get the WMS message  that explain this.
> 
> How could  I wait for all the response and merge them into one single pop-up ?
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130522/255e143c/attachment-0001.html>


More information about the Users mailing list